Jquery hasClass implementation
<p>I am checking for the presence of a class in table tr elements like: 
<code>&lt;tr class="row1 head4"&gt;&lt;/tr&gt;</code></p>

<p>by the statement: <br>
<code>if (that.next().hasClass('.head'+nextRow)){}
 else if (that.next().hasClass('.head'+(nextRow+1))){}
</code></p>

<p><code>nextRow</code> has values ranging from 1 to 5. but it isnt working. is the syntax wrong?</p>
