Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

cloning an element

var el = document.querySelector('div');

var foo = el.cloneNode(true);
Source by plainjs.com #
 
PREVIOUS NEXT
Tagged: #cloning #element
ADD COMMENT
Topic
Name
3+4 =