× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.