jQuery: Get selected element tag name

You can call .prop(“tagName”). Examples: If writing out .prop(“tagName”) is tedious, you can create a custom function like so: Examples: Note that tag names are, by convention, returned CAPITALIZED. If you want the returned tag name to be all lowercase, you can edit the custom function like so: Examples:

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)