How do I check if $(this) is a div, ul or blockquote?
$(this)
div
ul
blockquote
For example:
if ($(this) is a div) { alert(\'
if(this.tagName.toLowerCase() == "div"){ //it's a div } else { //it's not a div }
edit: while I was writing, a lot of answers were given, sorry for doublure