Jump to content

setTimeout() problem.


Cod-nes

Recommended Posts

EDIT: I SOLVED IT.----Settimeout doesn't want to function even though the rest of the code works and I don't know why.

var t;function time() {var ele = document.getElementById('ele');check(ele.value); // THIS WORKSt = setTimeout("check(ele.value)",100); // THIS DOESN'T WANT TO WORK}

----The solution for setTimeout:

t = setTimeout(function() { check(ele.value)},100);

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...