Browse - Programming Tips - Using jQuery, how can I find out what kind of tag something is?
Q. Using jQuery, how can I find out what kind of tag something is?
eg checkbox, select, button, etc.
A. Its not supported directly in jQuery. You need to use raw DOM:
var tag = $('#mything').tagName.toLowerCase();
alert('mything is a ' + tag);
The  converts your query into a DOM object so you can use .tagName.
Some browser give it in UPPERCASE so I like to convert it to lower.