Hello,
can someone tell me what's wrong with this code please...
I get the following error...
in FF it seems to point to the decimal place in the number.
basically i'm checking that the form field once evaluated into a number is not NaN and the form contains the value show above.
Why is this erroring , what's the problem???
thanks,
1DMF
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
can someone tell me what's wrong with this code please...
Code:
// loan amount
if(frm.loanamount.value == ""){
msg += "Loan Amount missing.\n";
}
else if(isNaN(eval(frm.loanamount.value))){
msg += "Invalid Loan Amount.\n";
}
I get the following error...
Error: missing ; before statement
Source File: myscript.js
Line: 585, Column: 7
Source Code:
520,000.00
in FF it seems to point to the decimal place in the number.
basically i'm checking that the form field once evaluated into a number is not NaN and the form contains the value show above.
Why is this erroring , what's the problem???
thanks,
1DMF
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!