
March 21st, 2005, 04:55 PM
|
|
Contributing User
|
|
Join Date: Apr 2007
Posts: 16
Time spent in forums: 1 h 45 m 15 sec
Reputation Power: 0
|
|
|
Dynamically check multiple field values
Hi,
Has anyone ever globaly checked multiple field values without having to specify each individual element statement? This is what I am working with (although it's not working):
Code:
var i;
var element;
for (i=1; i<15; i++) {
element = document.form.t[i];
if (element.type == "text") {
if (element.type.value == 75) {
document.images["img1"].src = pics[0];
}
}
}
This is only one example. I'm working with a form with 7 columns and 14 rows all with individual field names to perform calculations. I'm searching for a way to run a global validation on the value entered in each field; any suggestions would be greatly appreciated!
|