Jump to content

setTimeout() problem.

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);

Edited by Cod-nes
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...