D
David
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(objValue,objName) {
var checkValue = objValue;
var checkName = objName;
var evalmeth = "0123M";
var pos = evalmeth.indexOf(checkValue);
if (pos < 0 ) {
alert(pos+":"+evalmeth+":"+checkValue+":"+checkName);
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="checkGrade(this.value,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(objValue,objName) {
var checkValue = objValue;
var checkName = objName;
var evalmeth = "0123M";
var pos = evalmeth.indexOf(checkValue);
if (pos < 0 ) {
alert(pos+":"+evalmeth+":"+checkValue+":"+checkName);
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="checkGrade(this.value,this.name)"><BR>