This is the code i have used, i am getting an issue that its not displaying decimal values
i.e : if i give the value 4.5 , it displays only 4, please help me with the problem
$('.count').each(function () {
$(this).prop('Counter', 0).animate({
Counter: $(this).text()
}, {
duration: 8000,
easing: 'swing',
step: function (now) {
// $(this).text(Math.ceil(now));
$(this).text(Math.ceil(now).toString().replace(/(d)(?=(ddd)+(?!d))/g, "$1,"));
}
});
});