How can when that typed numbers in input:text, separated them three to three and between them puting this:”,”?
normal number formatting
Example: typed this number in input: 45656839
result (live – online) in same input: 45,656,839
i not want use of plugin.
With respect
Demo
This should do it for you.
EDIT
For normal number formatting, the code is a little different. There’s probably a some good regex out there for this but my first thought was to reverse the string and apply the same technique. Then you reverse the string again and you have it
EDIT 2
Demo
And for future reference if anyone wants to implement this with decimal places (yeah I got carried away :P) …