Get the type of the HTML element from a jquery object [duplicate] Get the type of the HTML element from a jquery object [duplicate] jquery jquery

Get the type of the HTML element from a jquery object [duplicate]


$('.myElem').each(function () {      var htmlType = $(this).prop('tagName') //Example      console.log(htmlType);});