How do I check if $(this) is a div, ul or blockquote?
$(this)
div
ul
blockquote
For example:
if ($(this) is a div) { alert(\'
To check if this element is DIV
if (this instanceof HTMLDivElement) { alert('this is a div'); }
Same for HTMLUListElement for UL, HTMLQuoteElement for blockquote
HTMLUListElement
HTMLQuoteElement