Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

clone element html

// Get the element
var elem = document.querySelector('#elem1');

// Create a copy of it
var clone = elem.cloneNode(true);
Source by gomakethings.com #
 
PREVIOUS NEXT
Tagged: #clone #element #html
ADD COMMENT
Topic
Name
9+9 =