Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js get element type

// Use the DOM element's 'tagName' property:

var element_type = field.tagName;
 
PREVIOUS NEXT
Tagged: #js #element #type
ADD COMMENT
Topic
Name
3+4 =