This code isn\'t for anything in particular. I\'m just trying to successfully get the tagName or nodeName of an element. However, when I run the following code, I always get
You are trying to access a non-member of the jQuery object. Use one of these DOM element accessors to retrieve these properties:
jQuery
$( '#last' ).get(0).nodeName
OR
$( '#last' )[0].nodeName
document.getElementById( 'last' ).nodeName