Yes, I am new to javascript. I have a page with six boxes for 10 goals.
Because of the other tools, I am using, I cannot use a select or radio
button for each one. I have this script that works to check the valid
values for each field. It does not go back to the field with the error
when I get done. My alert tells me I have the right names at this
point. Any thoughts?
Many thanks.
<!-- Begin
function checkGrade(objV alue,objName) {
var checkValue = objValue;
var checkName = objName;
var evalmeth = "0123M";
var pos = evalmeth.indexO f(checkValue);
if (pos < 0 ) {
alert(pos+":"+e valmeth+":"+che ckValue+":"+che ckName);
form.checkName. select();
form.checkName. focus();
return false;
}
else {
return true;
}
}
// End -->
Enter a value from 1 to 5: <input type="text" name="EvalDT1" size="20"
onchange="check Grade(this.valu e,this.name)">< BR>
Because of the other tools, I am using, I cannot use a select or radio
button for each one. I have this script that works to check the valid
values for each field. It does not go back to the field with the error
when I get done. My alert tells me I have the right names at this
point. Any thoughts?
Many thanks.
<!-- Begin
function checkGrade(objV alue,objName) {
var checkValue = objValue;
var checkName = objName;
var evalmeth = "0123M";
var pos = evalmeth.indexO f(checkValue);
if (pos < 0 ) {
alert(pos+":"+e valmeth+":"+che ckValue+":"+che ckName);
form.checkName. select();
form.checkName. focus();
return false;
}
else {
return true;
}
}
// End -->
Enter a value from 1 to 5: <input type="text" name="EvalDT1" size="20"
onchange="check Grade(this.valu e,this.name)">< BR>
Comment