Difference between revisions of "Jquery element querys"
From John Freier
(Created page with 'These are different ways in JQuery to query for the element(s). Check boxes $('[type="checkbox"]').click(function(){});') |
|||
Line 3: | Line 3: | ||
Check boxes | Check boxes | ||
$('[type="checkbox"]').click(function(){}); | $('[type="checkbox"]').click(function(){}); | ||
+ | |||
+ | |||
+ | Not - When getting a group of items, this will exclude certain ones. | ||
+ | $('.clazz').not('.blue').click(function(){}); |
Revision as of 13:18, 22 September 2011
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(){});