document.getElementsByTagName can be used to get an array of matching tags. You 
must then check the ID to see if it matches what you are looking for. Keep in 
mind that your ID tags must be unique. It may be easier to check for specific 
IDs that are predictable, (eg: id01, id02, id03) then you can simply use 
document.getElementById("...").
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [
mailto:web400-bounces@xxxxxxxxxxxx]On
Behalf Of Raul A. Jager W.
Sent: Thursday, April 19, 2007 1:09 PM
To: Web Enabling the AS400 / iSeries
Subject: [WEB400] Javascript element
I can get an array with all the elements that have the same name with 
document.getElemensByName(".."),
but since "name" is deprecated in xhtml, and replaced by id, I will like 
to get all the elements with the same id, or be able to get them (theys 
value) somehow.
By name I get the array, and a for loop gives me each value,
How do I get the diferent values by ID?
TIA,
Raúl
As an Amazon Associate we earn from qualifying purchases.