How do I check if $(this) is a div, ul or blockquote?
$(this)
div
ul
blockquote
For example:
if ($(this) is a div) { alert(\'
Going through jQuery you can use $(this).is('div'):
Check the current matched set of elements against a selector, element, or jQuery object and return true if at least one of these elements matches the given arguments.