get class of $(this)
get class of $(this)
I have 20 boxes/divs grouped into 4 different classes and spread
throughout a page. I want to click on any box and retrieve its class
name. Something like this...
$(this).click(function(){
alert($(this).attr("class");
}
Thanks,