# Automatically Add Commas to an Input Field?

**URL:** <https://forum.kirupa.com/t/automatically-add-commas-to-an-input-field/314615>\
**Category:** flash\
**Created:** [October 4, 2010, 1:29pm UTC](https://forum.kirupa.com/t/automatically-add-commas-to-an-input-field/314615 "2010-10-04T13:29:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![blasko229](https://avatars.discourse-cdn.com/v4/letter/b/9de053/32.png) [@blasko229](https://forum.kirupa.com/u/blasko229)\
**Post date:** [October 4, 2010, 1:29pm UTC](https://forum.kirupa.com/t/automatically-add-commas-to-an-input-field/314615/1 "2010-10-04T13:29:39Z")

</div>

User would type in the input 1000 or 5000000 and the immediately have commas added resulting in 1,000 and 5,000,000

I would think it would also need to ignore / remove any commas the user has put in to prevent any errors. The final number is being processed as part of a calculator.

Is this possible to do as the user types?

Thank you geniuses.
