How can I find out that $(this)
is an li
? Is there any jQuery function that will let us know what HTML tag it is?
<ul>
<li class="data">Hello</li>
<li class="data">World</li>
</ul>
$('.data').each(function() {
alert($(this).?); // Find what HTML Tag is in $(this)
});