How about giving each element that you want in your array an id of say "id1"
... "id25", and using a for loop to retrieve each DOM reference into an array
element?
Nathan.
----- Original Message ----
From: Raul A. Jager W. <raul@xxxxxxxxxx>
To: Web Enabling the AS400 / iSeries <web400@xxxxxxxxxxxx>
Sent: Thursday, April 19, 2007 2:09:19 PM
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.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.