jQuery remove larger scope?
<p>If I have an element nested as:</p>

<pre><code>&lt;ul&gt;
    &lt;li&gt;&lt;img src="/blah.jpg" class="removeme" /&gt;&lt;/li&gt;
    &lt;li&gt;&lt;img src="/ole.jpg" class="keepme" /&gt;&lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>How do I go about removing the entire list containing the img class that has <code>removeme</code>?
I've been able to get to</p>

<p>alert($(containername).children('ul').children('li').children().hasClass("removeme"))</p>

<p>returns true but I can't seem to remove the entire <code>&lt;li&gt;&lt;/li&gt;</code> (and <strong>not</strong> only the img).</p>

<p>Thanks in advance!</p>
