JeeEiych
IS-IT--Management
- Aug 22, 2001
- 7
I have several forms in a page. I want to access a repeating field from those forms but I want to avoid one particular form. I tried to access the name but I can't. This is how I tried it..
for (var iForm = 0; iForm < document.forms.length; iForm++) {
if ((document.forms[iForm].name != "FormA"){
iCalc = document.forms[iForm].FieldA.value * x;
document.forms[iForm].FieldB.value = iCalc;
}
}
Not all form have FieldA that''s why I want to avoid it.
for (var iForm = 0; iForm < document.forms.length; iForm++) {
if ((document.forms[iForm].name != "FormA"){
iCalc = document.forms[iForm].FieldA.value * x;
document.forms[iForm].FieldB.value = iCalc;
}
}
Not all form have FieldA that''s why I want to avoid it.