|
-
Aug 24th, 2011, 05:15 PM
#1
Thread Starter
PowerPoster
Using Javascript to format an Integer w/o a Comma?
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,
-
Aug 24th, 2011, 05:24 PM
#2
Re: Using Javascript to format an Integer w/o a Comma?
Format it how? There are no native JavaScript functions that add commas in the first place.
-
Aug 24th, 2011, 05:30 PM
#3
Thread Starter
PowerPoster
Re: Using Javascript to format an Integer w/o a Comma?
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!
-
Aug 24th, 2011, 08:33 PM
#4
Re: Using Javascript to format an Integer w/o a Comma?
You can remove commas from a string using JavaScript.
Code:
var thousand = "1,000.00";
thousand.replace(",", "");
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|