Use the tagName property on the element. For example:
$('.myClass').each(function() { var tag = this.tagName.toLowerCase(); alert(tag); }); Mike On 7/24/07, G[N]Urpreet Singh <[EMAIL PROTECTED]> wrote:
Hi, I am running an each loop on a group of child elements and then doing something to them. Only, I want to treat tables differently. How can I find out that what type the selected element is? Type as in, is it a table or a div or a span... Thanks, Gurpreet