How can I determine what's the type of a element?
For example, I have a function that's hooked on all elements that have a certain class. These elements can be textareas, iframes, divs etc. I want to find out what kind of element is the current one.
How can I determine what's the type of a element?
For example, I have a function that's hooked on all elements that have a certain class. These elements can be textareas, iframes, divs etc. I want to find out what kind of element is the current one.
Use Element Selector to get specific type elements.
And use tagName to get the type of a specific element.
How can I determine the element type of a matched element in jQuery?