Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery get element tag

jQuery("<a>").prop("tagName"); //==> "A"
jQuery("<h1>").prop("tagName"); //==> "H1"
jQuery("<coolTagName999>").prop("tagName"); //==> "COOLTAGNAME999"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #element #tag
ADD COMMENT
Topic
Name
6+5 =