i have a DOM element with class=\'tag\'.
i want to check if the class value is tag and alert a message if it\'s true.
i wrote:
$(\"#thread\")
if( $(event.target).hasClass("tag") ) { alert("yes"); }
This will work fine.