http://jsfiddle.net/75pxp9ms/5/
In the JSfiddle i have above, im asking it to change the text of the id "text" when the counter variable is under and over ten but it doesn't seem to be working, was wondering if anyone could help me out! It's probably a really easy fix but im fairly new to javascript so forgive me, ill get the hang of it
thanks
var counter = 0;
var value = 1;
var spin = document.getElementById("var");
var lol = document.getElementById("text");
setInterval(function () {
counter += value;
spin.innerHTML = counter;
}, 1000);
if (counter > 10) {
lol.innerHTML = "WOW YOU REALLY LOVE KEVIN XO"
}
edit: Sorry for duplicate post and thanks for the help guys!