How do I check if $(this) is a div, ul or blockquote?
$(this)
div
ul
blockquote
For example:
if ($(this) is a div) { alert(\'
Old question but since none of the answers mentions this, a modern alternative, without jquery, could be just using a CSS selector and Element.matches()
element.matches('div, ul, blockquote');