I have a little problem that has been hard to solve, harder than I believed. I assume there will be a simple answer to this one.
So, I have made a timer using javascript, the timer works fine and that's not a problem. However, I am using this to define the timer:
document.getElementById("timerz").innerHTML = 0;
And then using this to display the timer
<span id=timerz></span>
I know that I can't use an element with the same ID on multiple places. However, I've tried this:
document.getElementsByClass("timerz").innerHTML = 0;
And then
<span class=timerz></span>
And it is still not working, how can I solve this? It's very strange.