Comparison inside if statment?
<p>Can someone tell me is it possible to have an if statment similar to this? 
I want to check is the first list item with class FIRST really first li tag.
My firebug console throws me no errors but this code is not working...
Thank you!!  </p>

<pre><code>&lt;script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;

    if($('ul li.first')==$('ul li:first')){
        $('ul').css({'display':'none'});
    }

&lt;/script&gt;

&lt;/head&gt;
&lt;body&gt;

&lt;ul&gt;
    &lt;li class="first"&gt;One&lt;/li&gt;
    &lt;li&gt;two&lt;/li&gt;
    &lt;li&gt;three&lt;/li&gt;
&lt;/ul&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>
