[jQuery] Nested Selectors
Hi Guys,
Just wondering how many times you can nest selector functions like
parent, not, has, etc
I tried the following...
$
(".someDiv .someSpan:parent(:has(input:checked))").addClass("hasSelectedCB");
and
$
(".someDiv .someSpan:parent(:has(input:not(:checked)))").addClass("notSelectedCB");
The first worked, the second returns zero items.
Anyone know if there is a limit to nesting these selectors or Is there
a better way I should be doing this?