jQuery to select previous this?
<p>jsfiddle to debug :<br>
<a href="http://jsfiddle.net/ZpsCX/" rel="nofollow">http://jsfiddle.net/ZpsCX/</a>  </p>

<p><strong>Newer Update:</strong><br>
this is the html</p>

<pre><code>&lt;li&gt;Something&lt;/li&gt;
&lt;div class='a'&gt;
 &lt;div class='x'&gt;REMOVE&lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>im trying to remove LI by going to parent then previous :  </p>

<pre><code> $('.x').click(function(){
    $(this).parent().prev().remove();
 });
</code></pre>

<p>but if i used this</p>

<pre><code> $('.x').click(function(){
   if(bla bla bla){ // and it returns TRUE
     $(this).parent().prev().remove();
   }
 });
</code></pre>

<p>it doesnt work</p>
