I would like to know if there is a way to get the name of a element by its class or id.
for exemple retur
use this:
$('.classTag').get(0).tagName;
or this:
$('.classTag')[0].tagName;
for ex we have this markup:
my div var $tag = $('.classTag')[0].tagName; //this will return 'DIV'as result alert($tag);