jQuery - find all elements without someone between
<p>For example we have such dom:</p>

<pre><code>&lt;div id="main" class=".container"&gt;
    any other elements
    &lt;div&gt;
       &lt;span class="edit" /&gt;
    &lt;/div&gt;
    &lt;div class=".container"&gt;
         &lt;div class="edit"&gt;
    &lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>How to make query, to select only first edit</p>

<p>Something like $('#main .edit:not(.container between)')</p>
