How To Get the HTML Tag Name of an Element Using jQuery

var Tag = jQuery(‘yourElementSelector’).get(0).tagName.toLowerCase(); Note: nodeName also works in place of tagName!
![]() |
var Tag = jQuery(‘yourElementSelector’).get(0).tagName.toLowerCase(); Note: nodeName also works in place of tagName!
1 2 3 4 |
var Params = jQuery.param({ 'pagenum': 16, 'pageqty': 10, }) + '&' + jQuery('#yourForm').serialize(); |