PrettyNumber – A jQuery Plugin for Formatting Numbers
Here’s a jQuery plugin that transforms a number into a human readable format. This plugin formats a number like 23454321234 into 23.454.321.234 . You can use different delimiters like the comma, dot, space or anything you specify in the plugin. Here are some examples of how to call the plugin: <div id="number1">1234567123672</div> <div id="number2">12345622237123672</div> a) […]
From our sponsor: Wix’s robust, secure platform lets you develop faster and deliver smarter.
Here’s a jQuery plugin that transforms a number into a human readable format. This plugin formats a number like 23454321234 into 23.454.321.234 . You can use different delimiters like the comma, dot, space or anything you specify in the plugin.
Here are some examples of how to call the plugin:
<div id="number1">1234567123672</div>
<div id="number2">12345622237123672</div>
a)
$("#number1").prettynumber();
//it would output 1.234.567.123.672
b)
$("#number2").prettynumber({
delimiter : ','
});
//it would output 12,345,622,237,123,672
Download source
Tagged with: commas dots jQuery number pretty
CSS Reference
Learn about all important CSS properties from the basics with our extensive and easy-to-read CSS Reference.
It doesn't matter if you are a beginner or intermediate, start learning CSS now.
Pingback: uberVU - social comments