Clone an Element Using jQuery

Clone an Element Using jQuery
0

#1

Why does jQuery function // $("#target5").clone().appendTo("#left-well"); // clone target5 double times into left-well? Is that ok?


#2

It’s because the code gets run twice - the first time after you type it in (automatic) and again after you click ‘Run Tests’. It’s fine, don’t worry about it.


#3

Thank you so much for the answer!)