--- id: bad87fee1348bd9aed608826 title: Use appendTo to Move Elements with jQuery challengeType: 6 --- ## Description
Now let's try moving elements from one div to another. jQuery has a function called appendTo() that allows you to select HTML elements and append them to another element. For example, if we wanted to move target4 from our right well to our left well, we would use: $("#target4").appendTo("#left-well"); Move your target2 element from your left-well to your right-well.
## Instructions
## Tests
```yml tests: - text: Your target2 element should not be inside your left-well. testString: assert($("#left-well").children("#target2").length === 0, 'Your target2 element should not be inside your left-well.'); - text: Your target2 element should be inside your right-well. testString: assert($("#right-well").children("#target2").length > 0, 'Your target2 element should be inside your right-well.'); - text: Only use jQuery to move these elements. testString: assert(!code.match(/class.*animated/g), 'Only use jQuery to move these elements.'); ```
## Challenge Seed
```html

jQuery Playground

#left-well

#right-well

```
## Solution
```html

jQuery Playground

#left-well

#right-well

```