jquery hasClass()
<p>I want to pass a variable as a parameter to <code>.hasClass()</code>:</p>

<pre><code>var data = 1 ; 
if($(".concon").hasClass(data))
{
    //do some thing
}
</code></pre>

<p>However this does not seem to work. How can I use a class-name stored in a variable with this method?</p>
