How do I select only the elements who coincide with the exact path?
<p>I use the following expression to select all the links in this "path":</p>

<pre><code>$J('#leftmenu li div a")
</code></pre>

<p>The problem is that inside i can have the following hierarchy:</p>

<pre><code>&lt;ul id="lefmenu"&gt;
&lt;li&gt;&lt;div&gt;&lt;a href="#"&gt;foo&lt;/a&gt;
&lt;ul&gt;&lt;li&gt;&lt;div&gt;&lt;a href="#"&gt;subfoo&lt;/a&gt;
&lt;/li&gt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>Using this expression this selects foo and subfoo.</p>

<p>I would like the way to select only foo, that is to say the exact path I write in my expression, right now this is selecting all the "li div a", inside the list, that is why it selects foo and subfoo.</p>
