I am always looking for this same piece of code, so here it is: Usage: $(‘#div’).html(number_format(myNum)); From phpjs Also, padding a single number to doubel number, such as 1 -> 01, 2 -> 02 function pad2(number) { return (number < 10 ? ’0′ : ”) + number; } Sort of related: Bootstrap style select pulldown [...]
- Welcome to Daigo’s Daily Digital Diorama. I blog about... whatever that comes to my mind.
Change color
Archives
Calendar
Categories
