Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Clone Element in DOM - Jquery

*/Clone Element in DOM /*  
		const elementToClone = $('.className')[0]; // Element to be cloned
        const clonedInMemory = elementToClone.cloneNode(true); // clone the element
        $(clonedInMemory).insertAfter('className'); // Insert in another place
Source by api.jquery.com #
 
PREVIOUS NEXT
Tagged: #Clone #Element #DOM #Jquery
ADD COMMENT
Topic
Name
5+2 =