JustinCann
1/8/2018 - 4:41 PM

Count To wit Commas

Add commas to count to

$('.count-to').each(function() {
    $(this).one().countTo({
        onComplete: function(value) {
            // convert string to integer and add commas
            $(this).one().text(parseInt(value).toLocaleString()); 
        }
    });
});