[jQuery] jQuery equivalents
Hi,
are there jQuery equivalents to the following expresions?
if( element.nodeName.toLowerCase() == 'select' ) { ... }
if( element.type && element.type = 'checkbox' ) { ... }
For the first I tried $(element).parent().is('select'). While it works, I
think it's much slower. The same applies to
$(element).is('[@type=checkbox]').
jQuery encapsulates lots of browser bugs, thats why I'd like to use jQuery
ways, mainly because I can currently only test on IE6 and FF 1.5
-- Jörn
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/