--- id: bad87fee1348bd9aed508826 title: Clone an Element Using jQuery challengeType: 6 videoUrl: '' localeTitle: Clonar un elemento usando jQuery --- ## Description
Además de mover elementos, también puede copiarlos de un lugar a otro. jQuery tiene una función llamada clone() que hace una copia de un elemento. Por ejemplo, si quisiéramos copiar target2 de nuestro left-well a nuestro left-well right-well , $("#target2").clone().appendTo("#right-well"); : $("#target2").clone().appendTo("#right-well"); ¿Notaste que esto involucra pegar dos funciones de jQuery? Esto se denomina function chaining y es una forma conveniente de hacer las cosas con jQuery. target5 tu elemento target5 y target5 a tu left-well .
## Instructions
## Tests
```yml tests: - text: Tu elemento target5 debería estar dentro de tu right-well . testString: 'assert($("#right-well").children("#target5").length > 0, "Your target5 element should be inside your right-well.");' - text: Una copia de su elemento target5 también debe estar dentro de su left-well . testString: 'assert($("#left-well").children("#target5").length > 0, "A copy of your target5 element should also be inside your left-well.");' - text: Solo usa jQuery para mover estos elementos. testString: 'assert(!code.match(/class.*animated/g), "Only use jQuery to move these elements.");' ```
## Challenge Seed
```html

jQuery Playground

#left-well

#right-well

```
## Solution
```js // solution required ```