jQuery Selectors - where item does not have children with a certain class
- by Trevor
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)')