Ask a Question
Advertise on boostr.in
boostr.in questions - Question:How to make a textbox accept only digits and formats numbers with commas?
I need a text box that:
(1) only accepts digits as characters.
(2) automatically continues to format numeric values with commas as the user types into it.
Â Â Â Â Â 1 becomes Â Â Â Â Â Â Â 1.00
Â Â Â Â 10 becomes Â Â Â Â Â Â 10.00
Â Â Â 100 becomes Â Â Â Â Â 100.00
Â Â 1000 becomes Â Â Â 1,000.00
Â 10000 becomes Â Â 10,000.00
100000 becomes 1,00,000.00
How to achieve that?
Sep 13, 2013
Sep 12, 2013
to add a comment.
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
To avoid this verification in future, please