commas.js demo

Automatically adds comma delimiters to numbers typed in to a text area or input.

This JavaScript automation is not as easy as it looks! Give it a try and be sure and partially backspace / delete over previously formatted numbers to see that formatting works in both directions.

To use, add class commas to your HTML textarea and input elements.