i have a DOM element with class='tag'.
i want to check if the class value is tag and alert a message if its true.
i wrote:
$("#thread").each(function(event) {
if(event.target.class == 'tag') alert('yes');
});
but it didnt worked. 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?