use event.target to get the class value?
<p>i have a DOM element with class='tag'.</p>

<p>i want to check if the class value is tag and alert a message if it's true.</p>

<p>i wrote:</p>

<pre><code>    $("#thread").each(function(event) {
        if(event.target.class == 'tag') alert('yes');
    });
</code></pre>

<p>but it didn't work. you can get the id with event.target.id but not the class with this code? what are all the values you can have after event.target?</p>
