I have one page that shows the summary data of bank funds, and I get all these values from the API. These values are not formatted, for example, as 50000.3645656.
So here is my page structure below
<span class="format">50000.3645656</span>
<span class="format">50000.3645656</span>
<span class="format">50000.3645656</span>
<span class="format">50000.3645656</span>
<span class="format">50000.3645656</span>
So what I want for sure is this, I want to format all these values with a comma formed with two decimal points, for example, 50,000.36.
How to do this after loading the page using jquery format and css in jquery format.
source
share