How do I check if $(this) is a div, ul or blockquote?
$(this)
div
ul
blockquote
For example:
if ($(this) is a div) { alert(\'
Without jQuery you can say this.tagName === 'DIV'
this.tagName === 'DIV'
Keep in mind that the 'N' in tagName is uppercase.
tagName
Or, with more tags:
/DIV|UL|BLOCKQUOTE/.test(this.tagName)