It's a question of syntactic nicety to be honest. It would be quite
nice to say var foo = $('#something'), then use native DOM methods and
properties as well as jQuery wrappers on the variable foo rather than
having to have separate interfaces for native DOM stuff and jQuery
methods.
98% of th
> If you're positive you'll get an element back, why not just do:
> $('#something')[0].tagName
It's a question of syntactic nicety to be honest. It would be quite
nice to say var foo = $('#something'), then use native DOM methods and
properties as well as jQuery wrappers on the variable foo rathe
On Oct 23, 11:51 am, jcoglan <[EMAIL PROTECTED]> wrote:
> This might be kind of a niche thing, but anyways... I'm trying to
> extend jQuery so that if $() returns a single element, you can get the
> element's properties directly on the jQuery instance. e.g.
> $('#something').tagName // "DIV"
3 matches
Mail list logo