Interview Question

Anonymous Interview

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

Answer

Interview Answer

1 Answer

0

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.

Joe Smoe on Aug 23, 2010

Add Answers or Comments

To comment on this question, Sign In with Facebook or Sign Up