How To Find The Type Of The Current Element Using jQuery
erics, Posted May 17th, 2011 at 11:18:18pm
Important Note: This solution REQUIRES jQuery 1.6 or better due to the addition of the :focus
selector!
Here is how I used it for a form in a jQuery UI dialog:
1 2 |
var Info = jQuery(this).find(':focus').get(0).tagName; if (tagName == 'INPUT') return false; |
Leave Your Comment
All fields marked with "*" are required.