Jump to content

How to place a comma to numbers


Recommended Posts

CSS can't do it. Ideally, the server-side language would do it. If this is a plain HTML page with no server-side language, the best option is formatting the numbers correctly when writing the HTML.

If none of the previous cases apply, Javascript should be able to modify the numbers. In Javascript, toLocaleString() will format the numbers.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...