-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1 | initial version | |
I am currently using this textbox constraint to allow only 6 figure numbers to 3 decimal places.
<textbox id="bal" maxlength="11" constraint="/^[0-9]{1,6}(?:[.][0-9]{1,3})?$/"/>
So currently I can enter 999999.999. However, I want to allow to enter a $ sign before the number. How do I add that to the constraint?
2 | No.2 Revision |
I am currently using this textbox constraint to allow only 6 figure numbers with up to 3 decimal places.
<textbox id="bal" maxlength="11" constraint="/^[0-9]{1,6}(?:[.][0-9]{1,3})?$/"/>
So currently I can enter up to 999999.999. However, I want to allow to enter for a $ sign to be entered before the number. How do I add that to the constraint?