I have an element like so:
<div id="foo">
<a href="#" class="some">click me</a>
<div id="bar">
<a href="#" class="some">click me too</a>
</div>
</div>
and I need to select the a
elements that are not inside bar
. Problem is I can't use children()
, because my foo
is much more complex than above.
Question:
Is there a way to select "some" elements from a foo
and explicitly excluding "some" elements from bar
?