× 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.



Jeff

Many thanks

To my mind, whilst the ENTER, PAGE UP AND PAGE DOWN buttons are duplicated ( and I will test your code on these)

the rest of the button names are unique

Or am I not understanding?

Rob Dixon

Flaker, Jeff wrote:

Rob,

If you have two or more elements bearing the same name you must do this
via a FOR loop.

Think of the two elements as an array, because that is what they
are....so loop through the array and change the button values:

for (i=0;i<form.ButtonName.length;i++)
       {form.ButtonName[i].value="SomeOtherValue";}

"SomeOtherValue" can be a variable also.

Jeffrey Flaker
Senior Programmer/Analyst
Linens 'N Things
6 Brighton Rd
Clifton, NJ  07015
Phone:   973-249-4384
Fax:     973-249-4901
http://www.lnt.com







As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.