[jQuery] Select node that is not descendant of a class

[jQuery] Select node that is not descendant of a class


Hello!
Given the following DOM
<div>
<span class="myClass"></span>
<div class="notClass">
<span class="myClass"></span>
</div>
</div>
How can I *efficiently* find all .myClass nodes that are *NOT*
descendants of .notClass ?
What I currently do is find all .myClass nodes and then run a filter
on the results that checks that the node doesn't have a .notClass
parent. This just seems a little inefficient, so I was wondering if
there is a more efficient way to get all .myClass nodes that are not
descendants of .notClass.
Thanks!
Best,
Chris