Skip to content

Challenge Clone An Element Using JQuery

Quincy Larson edited this page Aug 20, 2016 · 1 revision

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");
Clone this wiki locally