View Full Version : Automatically Add Commas to number as user types it into textfield?

13 Oct 2009, 1:19 PM
Is there a way to automatically format the value of a textfield so that as a user types in a number it will automatically throw in commas where appropriate (e.g. 1,000 or 1,000,000)?


John Sourcer
13 Oct 2009, 11:58 PM
onKeyUp? may interfere with the user experience a bit though. Why not do it when the input is completed?

14 Oct 2009, 9:07 AM
i dunno.

i just thought there might be some property i could set on a textfield that simple formats it as such with commas, etc....