clone()
que hace una copia de un elemento. Por ejemplo, si quisiéramos copiar target2
de nuestro left-well
a nuestro left-well
right-well
, $("#target2").clone().appendTo("#right-well");
: $("#target2").clone().appendTo("#right-well");
¿Notaste que esto involucra pegar dos funciones de jQuery? Esto se denomina function chaining
y es una forma conveniente de hacer las cosas con jQuery. target5
tu elemento target5
y target5
a tu left-well
. target5
debería estar dentro de tu right-well
.
testString: 'assert($("#right-well").children("#target5").length > 0, "Your target5
element should be inside your right-well
.");'
- text: Una copia de su elemento target5
también debe estar dentro de su left-well
.
testString: 'assert($("#left-well").children("#target5").length > 0, "A copy of your target5
element should also be inside your left-well
.");'
- text: Solo usa jQuery para mover estos elementos.
testString: 'assert(!code.match(/class.*animated/g), "Only use jQuery to move these elements.");'
```