7
I’m trying to solve the following problem:
On my page, the setInterval
does not repeat, I tried several ways, until simplify in the mode below to see if it would work, but even so it does not repeat, is working as a setTimeout
.
function teste(){
$("#teste").append("a");
}
var x = setInterval(teste(),1000);
In the
setInterval
remove the parenthesis ofteste
.– stderr
Possible duplicate of setInterval javascript does not work
– Leone Cerqueira