Hi am just new to jQuery while leaning online I come across this script
var START_DATE = new Date("July 6, 2015 21:52:00");
var INTERVAL = 20;
var INCREMENT = 1;
var START_VALUE = 9001;
var count = 0;
window.onload = function()
{
var msInterval = INTERVAL * 1000;
var now = new Date();
count = parseInt((now - START_DATE) / msInterval) * INCREMENT + START_VALUE;
document.getElementById('counter').innerHTML = count;
setInterval("count += INCREMENT; document.getElementById('counter').innerHTML = count;", msInterval);
}
I would like to add the comma separator to numbers such as 9001 to appear as 9,001, kindly help me on this Regards