¡GoConqr estrena diseño! Cuéntanos qué te parece.

Módulo 12 de 15 · Multimedia

On the Fly

Kostas Diakogiannis

On the Fly

Create Content on the fly!

If you want to create content on the fly, you will have to use these functions most of the time.

$(element).append(anotherElement) => equivalent to appendChild

$(element).prepend(anotherElement) => Puts the child at the beginning of the element.

$(element).after(anotherElement) => Equivalent to insertAdjacentElement();

$(element).before(anotherElement) => Adds a sibling exactly before the element.

Inserting multiple html elements also possible!

$(element).append(firstElement, secondElement, thirdElement) => appends firstElement, secondElement, thirdElement);

 

Bear in mind: Still you have to create somehow the element from the beginning (with the createElement() function probably).

Instrucciones

Para avanzar en el curso, envía un intento de este test. Puedes enviarlo después de la última pregunta.

Ir al módulo elegido

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?