In jQuery, if I have a reference to an element, how can I determine what kind of element it is, for example, an input or an dropdown? Is there any way to find out?
Duplicate:
How can I determine the element type of a matched element in jQuery?
In jQuery, if I have a reference to an element, how can I determine what kind of element it is, for example, an input or an dropdown? Is there any way to find out?
Duplicate:
How can I determine the element type of a matched element in jQuery?
You can use .prop() with tagName as the name of the property that you want to get:
$("#elementId").prop('tagName');
editbutton below it and tag it perfectly? - trejder