The code below counts 2 seconds from 0 to the specified number. How to make it count numbers from 0 to 12,456 - that is, return a number with commas?
var currentNumber = 0; var simple = '<?php echo $g_kill; ?>'; $({numberValue: currentNumber}).animate({numberValue: simple}, { duration: 2000, step: function() { $('.fot-global-txt').text(Math.ceil(this.numberValue)); } }); Displays NaN
simple.... - Alexey Shimansky