how can i remove parent if click its child
<p>how can i remove an ul if I click one of its children which inside of it? i know this ul .remove not true and How can I set color of "projects" as red? I have to use .find()</p>

<pre><code>&lt;ul class="w1m"&gt;
    &lt;li&gt;
       &lt;div&gt;
         &lt;img src="img/minus.png" onclick="$(this ul).remove();"/&gt;
         &lt;img src="img/link.png"/&gt;
       &lt;/div&gt;
       &lt;div&gt;
         inspiration
       &lt;/div&gt;
    &lt;/li&gt; 
&lt;/ul&gt;

&lt;ul class="w1m"&gt;
    &lt;li&gt;
       &lt;div&gt;
         &lt;img src="img/minus.png" onclick="$(this ul).remove();"/&gt;
         &lt;img src="img/link.png"/&gt;
       &lt;/div&gt;
       &lt;div&gt;
         projects
       &lt;/div&gt;
    &lt;/li&gt; 
&lt;ul&gt;
    &lt;li&gt;&lt;div&gt;&lt;img src="img/minus.png"/&gt;&lt;img src="img/link.png"/&gt;&lt;/div&gt;  &lt;div&gt;job board website&lt;/div&gt;&lt;/li&gt;
    &lt;li&gt;&lt;div&gt;&lt;img src="img/minus.png"/&gt;&lt;img src="img/link.png"/&gt;&lt;/div&gt;  &lt;div&gt;shopping cart&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/ul&gt;
</code></pre>
