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:
From stackoverflow
-
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
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.