|
|
| Forum moderator: bigblog |
| uCoz Community For Webmasters Custom Solutions How to add a dot for number |
| How to add a dot for number |
ucozpp, first of all, you need to put the number into a DIV or SPAN. I'll use DIV in my example, but I recommend to use SPAN:
Code <div class="number">200000</div> After this, add the following code after the code mentioned above: Code $(document).ready(function(){ return $(".number").each(function(){ $(this).text( $(this).text().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,") ); }); }); Hope this helps! hey i'm joe and i do not work for the company anymore, please contact tech support for help!
sometimes i lurk here |
| |||
| |||
Need help? Contact our support team via
the contact form
or email us at support@ucoz.com.





