Javascript NaN error
-
I am having 3 text boxes and a total label.total is calculating from the values of the textboxes.i am validating textboxes for only entering decimal values.but when i am entering values starting with decimal (".") the total is changing to NaN error (javascript - Not a Number error)..how to fix it?? other decimal values are working fine..only decimal starting with "." is giving error..any solution? Thanks in advance. "try try and try!!"
-
I am having 3 text boxes and a total label.total is calculating from the values of the textboxes.i am validating textboxes for only entering decimal values.but when i am entering values starting with decimal (".") the total is changing to NaN error (javascript - Not a Number error)..how to fix it?? other decimal values are working fine..only decimal starting with "." is giving error..any solution? Thanks in advance. "try try and try!!"
dont start with a decimal (.45 , I think you suppose to do like this) but for javascript it is not a number place it as (0.45) and try.Validate that textbox for a nmuiric value so that it wont happen in future
Sabari MD Application Developer Veloxit Info Solutions