Question
Help with Javascript - Numeric Entry Check
I am struggling with a javascript and would like to ask for
help from the community.
I have a form with several currency fields.. Its a very big form, so i wanted to check the user entry when the user moves to the next field using onBlur event, so that the user is not alerted of bad entries at the end.
VALID entires include:
0 to 10,
negative numbers
Decimal entries 55,555.66
$ 1,00,000
Blank entries (only if the user has marked the form as incomplete)
I have attached this test code for your reference. The problem with the code is that that it throws error when user enters for example 5,00,000 (commas)... or $5,000
If the user marks the form COMPLETE, then it should do a final check to check all the entries.
Can someone please help me with this?

I have a form with several currency fields.. Its a very big form, so i wanted to check the user entry when the user moves to the next field using onBlur event, so that the user is not alerted of bad entries at the end.
VALID entires include:
0 to 10,
negative numbers
Decimal entries 55,555.66
$ 1,00,000
Blank entries (only if the user has marked the form as incomplete)
I have attached this test code for your reference. The problem with the code is that that it throws error when user enters for example 5,00,000 (commas)... or $5,000
If the user marks the form COMPLETE, then it should do a final check to check all the entries.
Can someone please help me with this?