what's wrong with my jquery hasClass?
<pre><code>&lt;!DOCTYPE HTML&gt;
&lt;html&gt;  
&lt;head&gt;
&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type" /&gt; 
&lt;title&gt;abc&lt;/title&gt;
&lt;script type="text/javascript" src="scripts/jquery_latest.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
$(document).ready(function()
{
 if( $("#pics_tab1").hasClass("current") )  
   alert("tab1");       
 else
   alert("false");
});
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class="tabs"&gt;
        &lt;a href="#pics_tab1" class="current"&gt;&lt;/a&gt;
        &lt;a href="#pics_tab2"&gt;&lt;/a&gt;
        &lt;a href="#pics_tab3"&gt;&lt;/a&gt;
        &lt;a href="#pics_tab4"&gt;&lt;/a&gt;
        &lt;a href="#pics_tab5"&gt;&lt;/a&gt;
    &lt;/div&gt;
</code></pre>

<p>
</p>

<p>For some reason i can't find the answer on stack OR google. Maybe i haven't searched enough. But i keep getting: false istead of true no matter what i do. Yet, the class current is asigned to tab1.</p>

<p>Thx in advanced</p>
