Select all li's but not children
<p>I have this code:</p>

<pre><code>$li = $("li", this)
</code></pre>

<p>Which is selecting all of the <code>li</code>'s in my code. This works fine however I want <code>$li</code> to exclude the <code>li</code>'s that are within a submenu.</p>

<pre><code>    &lt;ul id="navigation"&gt;
        &lt;li&gt;&lt;a href="#"&gt;blah 1&lt;/a&gt;&lt;/li&gt;
        &lt;ul id="subnav"&gt;
            &lt;li&gt;&lt;a href="#"&gt;sub 1&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="#"&gt;sub 2&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="#"&gt;sub 3&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
        &lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;blah 2&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;blah 3&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;blah 4&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;blah 5&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
</code></pre>

<p>So <code>$li</code> would only reference the blah's not the sub's.</p>

<p>I thought it was something like:</p>

<pre><code>$li = $("li", this).parents()
</code></pre>

<p>But this doesn't do what I want.</p>
