Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

createElement with id

g = document.createElement('div');
g.setAttribute("id", "Div1");
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #createElement #id
ADD COMMENT
Topic
Name
4+4 =