#1
  1. I am still learning
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2002
    Location
    Kuala Lumpur, Malaysia
    Posts
    249
    Rep Power
    13

    formatting 1000 to 1,000 in javascript


    how can i format my data like the following?

    1000 to 1,000
    20000 to 20,000
    1000000 to 1,000,000

    is there any function that i can use?

    many thanks in advanced.

    cheers
    I have yet to find the right way to do it.

    www.genedavinci.com
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Nov 2001
    Posts
    1,882
    Rep Power
    20
  4. #3
  5. I am still learning
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2002
    Location
    Kuala Lumpur, Malaysia
    Posts
    249
    Rep Power
    13
    wow! thanks!
    I have yet to find the right way to do it.

    www.genedavinci.com

IMN logo majestic logo threadwatch logo seochat tools logo