sweet_sentiment
05-04-2004, 06:34 AM
say i have this input type field:
<input name="criteriaPaymentAmount" value="" onBlur="validateAmount()">
do you know any javascript code that validates an amount format that would do the following?
>would only accept 1 decimal point
>commas would be omitted and would display a new value without the commas
>checks whether the user has indeed entered a number and not some alpha/special characters
thanks in advance!
<input name="criteriaPaymentAmount" value="" onBlur="validateAmount()">
do you know any javascript code that validates an amount format that would do the following?
>would only accept 1 decimal point
>commas would be omitted and would display a new value without the commas
>checks whether the user has indeed entered a number and not some alpha/special characters
thanks in advance!