[thelist] Getting Child Elements from an HTML Element in JS

Joshua Olson joshua at waetech.com
Tue Jul 8 09:21:41 CDT 2003


----- Original Message ----- 
From: "Chris Evans" <chris at unhappyfun.com>
Sent: Tuesday, July 08, 2003 10:04 AM


> Given the element parentDiv1, how would I go about retrieving childDiv1
> and childDiv2 programmatically?

Chris,

ID's are should be unique to a document, so document.getElementById(id)
should do what you need.

Example:

document.getElementById('childDiv1');

<><><><><><><><><><>
Joshua Olson
Web Application Engineer
WAE Tech Inc.
http://www.waetech.com
706.210.0168



More information about the thelist mailing list