Javascript setTimeout while disabling input -


i'm using function settimeout(*function*, 500) delay function being called 0.5 seconds, during time done, need disable input field well. can disable input using document.getelementbyid("movechoice").disabled = true; , how do @ same time?

as per understanding of problem, might help:

       settimeout(function()         {         // function         document.getelementbyid("movechoice").disabled = false; // enabled after .5 seconds .if intended do         }, 500);          document.getelementbyid("movechoice").disabled = true; // .5 seconds (till time function delayed) disabled 

Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -