I have a string that I need to split on a given index and then return both parts, seperated by a comma. For example:
string: 8211 = 8,211 98700 = 98,
You can also use number formatter JS available at
https://code.google.com/p/javascript-number-formatter/
Format options
http://jsfiddle.net/chauhangs/hUE3h/
format("##,###.", 98700) format("#,###.", 8211)