Hello Tom,
In that case you need this code below:
HTML:
<strong id="customCounter" data-append="+">0</strong>
JS:
$('#customCounter').countTo({
from: 0,
to: 1500000,
speed: 1000,
refreshInterval: 50,
formatter: function(value, options) {
return value.toLocaleString();
},
onComplete: function() {
if ($(this).data('append')) {
$(this).html($(this).html() + $(this).data('append'));
}
if ($(this).data('prepend')) {
$(this).html($(this).data('prepend') + $(this).html());
}
}
});
* Note the “onComplete”.
Please, try that and let me know if you need further assistance.
Kind Regards,
Rodrigo.