Revision history [back]

click to hide/show revision 1
initial version

asked 2016-05-17 18:22:43 +0800

Princenuk gravatar image Princenuk

Add dollar Sign ($) to textbox constraint.

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?

Add dollar Sign ($) to textbox constraint.

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?

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More