Check, if element is a div

fullerriyadh

New Member
How do I check, if \[code\]$(this)\[/code\] is a div, ul, or blockquote?Want to check \[code\]$(this)\[/code\] by tag name.Like\[code\]if ($(this) is a div) {alert('its a div!');}else{alert('its not a div! some other stuff');}\[/code\]
 
Top