would anyone be so kind to tell me what's wrong with the following CSS selector?
:not(ul[class="nav navbar-nav"] li) > a
I'm trying to select all anchor
elements whose parent is not ul[class="nav navbar-nav"] li
Thx in advanced :)
I'm trying to set a CSS property for all anchors except the following ones:
<ul class="nav navbar-nav">
<li class="active">
<a href="#">Hi</a>
</li>
<li>
<a href="#">Hello</a>
</li>
<li>
<a href="#">Bye</a>
</li>
</ul>
Edit: The right selector using jQuery would be jQuery(':not(ul[class="nav navbar-nav"] li) > a')