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

Módulo 10 de 15 · Multimedia

Traversing the DOM

Kostas Diakogiannis

Traversing the DOM

Accessing Parents, children, sibling

You can access any time the parent element, the children elements or sibling elements by using these JQuery functions. For example:

$(element).parent() => return the parent element of the selected element.

$(element).children() => returns all direct children nodes of the element.

$(element).siblings() => returns all siblings elements of the element.

$(element).find('p') => returns all paragraphs that are descendants of the element.

Docs for accessing ancestors

Docs for accessing descendants

Docs for accessing siblings

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?