Menu
I have this code to check whether certain fields on my form are numeric before it’s submitted. It works fine in IE, but not Netscape. Is there a way to fix this?
Thanks
[SIZE=1]function verify()
{
//check text fields for numeric entries
var strErr;
strErr = “”;
if(!IsNumeric(frm1.q10.value) && (frm1.q10.value) != “”){
strErr += “Question #10n”
}
if(strErr != “”){
alert(“Please enter a numeric answer for the following question(s):n” + strErr);
return false;
}
return true;
}
function IsNumeric(val){
return(parseFloat(val,10)==(val*1));
}[/SIZE]