Using Javascript, how do you format an Integer so that it won't have any commas? I can't seem to find any examples of this.
Thanks,
Printable View
Using Javascript, how do you format an Integer so that it won't have any commas? I can't seem to find any examples of this.
Thanks,
Format it how? There are no native JavaScript functions that add commas in the first place.
Well, this application is using an Infragistics grid control that has EditorControl attributes assigned to the column in question. Unfortunately, there is nothing to suppress commas from showing up. So....I was wondering if it could be done using Javascript!
You can remove commas from a string using JavaScript.
Code:var thousand = "1,000.00";
thousand.replace(",", "");