Challenge Clone An Element Using JQuery - thelastmile/FreeCodeCamp GitHub Wiki

Challenge Clone an Element Using jQuery

jQuery has a function calledclone() that makes a copy of an element.

For example, if we wanted to copy target2 from our left-well to our right-well, we would use

$("#target2").clone().appendTo("#right-well");