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