--- id: bad87fee1348bd9aed608826 title: Use appendTo to Move Elements with jQuery challengeType: 6 videoUrl: '' localeTitle: Use appendTo para mover elementos com jQuery --- ## Description
Agora vamos tentar mover elementos de uma div para outra. jQuery tem uma função chamada appendTo() que permite selecionar elementos HTML e anexá-los a outro elemento. Por exemplo, se quiséssemos mover bem o target4 da direita para a esquerda, $("#target4").appendTo("#left-well"); : $("#target4").appendTo("#left-well"); Mova seu elemento target2 seu target2 da left-well para o da right-well .
## Instructions
## Tests
```yml tests: - text: Seu elemento target2 não deve estar dentro do seu left-well . testString: 'assert($("#left-well").children("#target2").length === 0, "Your target2 element should not be inside your left-well.");' - text: Seu elemento target2 deve estar dentro do seu right-well . testString: 'assert($("#right-well").children("#target2").length > 0, "Your target2 element should be inside your right-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 ```