I’ve been using a bit of jquery in my asp.net project and are trying to select all unchecked checkboxes that match a certain style class – and this 1st bit works fine.
$('span.cbmac input:not(:checked)').each(function() {";
//etc
});
I would like to use the opposite of this query, ie select all checked boxes that match the span tag cb.mac.
I’ve tried
!$('span.cbmac input:is(:checked)').each(function() {";
//etc
});
and a few variations but no luck so far, any ideas appreciated.
Any selector is an implied
:is(). You would usespan.cbmac :input:checked.