Jquery element querys

From John Freier
Revision as of 14:18, 22 September 2011 by Jfreier (Talk | contribs)

Jump to: navigation, search

These are different ways in JQuery to query for the element(s).

Check boxes

 $('[type="checkbox"]').click(function(){});


Not - When getting a group of items, this will exclude certain ones.

 $('.clazz').not('.blue').click(function(){});