SyntaxFix
Write A Post
Hire A Developer
Questions
You can use .prop() with tagName as the name of the property that you want to get:
tagName
$("#elementId").prop('tagName');