Hi,
I'm trying to set the value of a form from a script, I'm using this to set the field to change:
setvdunits1(vunits1)
And here is the script,
function setvdunits1 (elname) {
felname = elname ;
var list = document.form1.mlselecta;
var listItemText = list.options[list.selectedIndex].text;
if (listItemText == "Fault")
{alert("wererwer");
(document.form1.felname.value = "y")}
}
else
alert("OK");
}
I keep getting an error 'vunits1 is undefined'
Can anyone please help!
Regards,
Sanj
I'm trying to set the value of a form from a script, I'm using this to set the field to change:
setvdunits1(vunits1)
And here is the script,
function setvdunits1 (elname) {
felname = elname ;
var list = document.form1.mlselecta;
var listItemText = list.options[list.selectedIndex].text;
if (listItemText == "Fault")
{alert("wererwer");
(document.form1.felname.value = "y")}
}
else
alert("OK");
}
I keep getting an error 'vunits1 is undefined'
Can anyone please help!
Regards,
Sanj