Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

create element javascript with id

var btn = document.createElement('div'); 
btn.setAttribute("id", "div1");
 
PREVIOUS NEXT
Tagged: #create #element #javascript #id
ADD COMMENT
Topic
Name
7+5 =