employer cover photo
employer logo
employer logo

Shopping.com

Fait partie de eBay

Est-ce votre entreprise ?

Question d’entretien chez Shopping.com

How does one transfers the DOM with-ought using element IDs

Réponse à la question d'entretien

Utilisateur anonyme

23 août 2010

First of all... the question should not read "How does one transfers ... ". The correct word is 'traverse' .. meaning to 'move through' the DOM. Without selecting elements by an ID, there is also getElementByTagName or getElementByClassName. From there, childNodes and NextSibling are used to further 'traverse' through the DOM. good luck finding people who know how to do that right, with or without a library like jQuery.