jQuery has a function calledclone() that makes a copy of an element.
clone()
For example, if we wanted to copy target2 from our left-well to our right-well, we would use
$("#target2").clone().appendTo("#right-well");
There was an error while loading. Please reload this page.
New to Free Code Camp?
JS Concepts
JS Language Reference
Other Links