javascript - why innerHTML dosen't work inside setTimeout? -


$(document).ready(function () { counter.innerhtml = "3"; var t1 = settimeout(function () { counter.innerhtml = "2"; }, 1000); var t2 = settimeout(function () { counter.innerhtml = "1"; }, 1000); var t3 = settimeout(function () { counter.innerhtml = null; }, 1000); }); 

hello, why innerhtml dosen't work inside settimeout me? there better why count down? thanks!

$(document).ready(function () { counter.innerhtml = "3"; var t1 = settimeout(function () { counter.innerhtml = "2"; }, 1000); var t2 = settimeout(function () { counter.innerhtml = "1"; }, 2000); var t3 = settimeout(function () { counter.innerhtml = null; }, 3000); }); 

try this


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -