jQuery Selectors - where item does not have children with a certain class
Posted
by Trevor
on Stack Overflow
See other posts from Stack Overflow
or by Trevor
Published on 2010-04-21T14:27:40Z
Indexed on
2010/04/21
14:33 UTC
Read the original article
Hit count: 235
I want to select list items that are immediate children of #nav, that do not themselves have immediate children with an 'active' class.
This is what I think it should be but it does not work:
$('#nav > li:not(> a.active)')
© Stack Overflow or respective owner