--- id: bad87fee1348bd9aed608826 title: Use appendTo to Move Elements with jQuery challengeType: 6 videoUrl: '' localeTitle: Usa appendTo para mover elementos con jQuery --- ## Description
Ahora intentemos mover elementos de un div a otro. jQuery tiene una funciĆ³n llamada appendTo() que te permite seleccionar elementos HTML y agregarlos a otro elemento. Por ejemplo, si quisiĆ©ramos mover target4 de nuestro pozo derecho a nuestro pozo izquierdo, $("#target4").appendTo("#left-well"); : $("#target4").appendTo("#left-well"); Mueva su elemento target2 de su left-well a su right-well .
## Instructions
## Tests
```yml tests: - text: Tu elemento target2 no debe estar dentro de tu left-well . testString: 'assert($("#left-well").children("#target2").length === 0, "Your target2 element should not be inside your left-well.");' - text: Tu elemento target2 debe estar dentro de tu right-well . testString: 'assert($("#right-well").children("#target2").length > 0, "Your target2 element should be inside your right-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 ```