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