O GoConqr está de visual novo! Conte para nós o que você achou.

Módulo 10 de 15 · Mídia

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

Instruções

Para avançar no curso, envie uma tentativa deste quiz. Você pode enviá-la depois da última pergunta.

Ir para o módulo escolhido

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?