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
. 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.");'
```