I have a counter that should count from $ 0 to $ 10,000 in x seconds (most likely 3 seconds).
Just plain text, sort of like a millisecond countdown timer, but up and with a dollar sign.
I would prefer not to use a bulky plugin, as it just needs to be scrolled through 1-10.00 in x seconds and updated every 100 ms.
I'm stuck on creating a loop to be updated, where do I start?
Here is what I got so far in the click event:
function countUp() {
console.log('counted');
}
setInterval("countUp()", 1000)
source
share