Maybe: $(this).is('table')
Although, you might want to just use different selectors for the different elements: $(...).find('table').each(...); $(...).find('div').each(...); --Erik 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