|
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 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 copyright@midrange.com.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.