in jquery, if i have the reference of an element, how can i know what kind of element is it, like an input or an dropdown ? is there any way to find out?
Duplicate:
in jquery, if i have the reference of an element, how can i know what kind of element is it, like an input or an dropdown ? is there any way to find out?
Duplicate:
The following will return true if the element is an input:
$("#elementId").is("input")
or you can use the following to get the name of the tag:
$("#elementId").get(0).tagName