freeCodeCamp Challenge Guide: Clone an Element Using jQuery

freeCodeCamp Challenge Guide: Clone an Element Using jQuery
0

#1

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");

#2

Why do I get two (2) #target5 elements showing up in my #left-well?


#3

I had the same issue; it works fine on my offline coding but not on the challenge; I thought I was doing something wrong