Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get id of element javascript

var element = document.getElementsByTagName("div")[0];
var id = element.id;
 
PREVIOUS NEXT
Tagged: #id #element #javascript
ADD COMMENT
Topic
Name
8+6 =