I am looking to extend jQuery so I can easily retrieve the tagName of the first element in a jQuery object. This is what I have come up with, but it doesn\'t seem to work:>
Why create a plugin at all? Seems a bit unnecessary...
alert( $('div')[0].tagName );