Mahernoz wrote:
I want to know how to achieve a dom traversal for a DIV element.
The DIV has a table in which there are textboxes and dropdowns. I want
to get the value of each textbox and dropdown and store it in some
kind of a string.
Well getElementsByTagName is a method of each element object thus if you
have the div element object then
div.getElementsByTagName('input')
gives you a node list with all input elements and similarly
div.getElementsByTagName('select')
gives you a node list with all select (dropdown) elements.
--
Martin Honnen
http://JavaScript.FAQTs.com/