Anthony Rappa

Stuff I learned along the way

Month: July 2015

Adding commas to numbers using jQuery

First define your function:

Then, call it on the object you want to modify:

1000000 becomes 1,000,000

© 2017 Anthony Rappa. Theme by Anders Norén.