title: How to exclude elements inside a child-element from a selection without using children()?
body: <p>I have an element like so:</p>
  
  <pre><code>&lt;div id="foo"&gt;
    &lt;a href="#" class="some"&gt;click me&lt;/a&gt;
    &lt;div id="bar"&gt;
       &lt;a href="#" class="some"&gt;click me too&lt;/a&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>and I need to select the <code>a</code> elements that are not inside <code>bar</code>. Problem is I can't use <code>children()</code>, because my <code>foo</code> is much more complex than above.</p>
  
  <p><strong>Question:</strong><br>
  Is there a way to select "some" elements from a <code>foo</code> and explicitly excluding "some" elements from <code>bar</code>?</p>