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
Actually $('.some-class') returns an array of elements with this class, so you have to loop through it:
$('.some-class')
$('.some-class').each(function(){ console.log(this.nodeName); });
this will output their node names to console