I use jquery animate for incremente random number 0001 to 1000 but if number is 0077 the final number is 77 what is the solution for have format like 0077 plz ?
Thanks you
var $date = $("#date");
$({someValue: 0000}).animate({someValue: 0077}, {
duration: 1000,
easing:'swing',
step: function() {
$date.text(Math.round(this.someValue));
}
});