--- id: bad87fee1348bd9aed508826 title: Clone an Element Using jQuery challengeType: 6 videoUrl: '' localeTitle: Clone um elemento usando jQuery --- ## Description
Além de mover elementos, você também pode copiá-los de um lugar para outro. jQuery tem uma função chamada clone() que faz uma cópia de um elemento. Por exemplo, se quiséssemos copiar o target2 do nosso target2 da left-well para o nosso da right-well , $("#target2").clone().appendTo("#right-well"); : $("#target2").clone().appendTo("#right-well"); Você notou que isso envolve juntar duas funções jQuery? Isso é chamado de function chaining e é uma maneira conveniente de fazer as coisas com o jQuery. Clone seu elemento target5 e anexe-o à sua left-well .
## Instructions
## Tests
```yml tests: - text: Seu elemento target5 deve estar dentro do seu right-well . testString: 'assert($("#right-well").children("#target5").length > 0, "Your target5 element should be inside your right-well.");' - text: Uma cópia do seu elemento target5 também deve estar dentro do seu left-well . testString: 'assert($("#left-well").children("#target5").length > 0, "A copy of your target5 element should also be inside your left-well.");' - text: Use apenas o jQuery para mover esses 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 ```