0
私は関数setTimeout(*function*, 500)
を使用して0.5秒間呼び出される関数を遅延させていますが、この間に入力フィールドも無効にする必要があります。 document.getElementById("movechoice").disabled = true;
を使用して入力を無効にすることはできますか?問題の私の理解あたりとしてJavascript setTimeout入力を無効にする
私は関数setTimeout(*function*, 500)
を使用して0.5秒間呼び出される関数を遅延させていますが、この間に入力フィールドも無効にする必要があります。 document.getElementById("movechoice").disabled = true;
を使用して入力を無効にすることはできますか?問題の私の理解あたりとしてJavascript setTimeout入力を無効にする
、これは役立つかもしれない:
setTimeout(function()
{
// your function
document.getElementById("movechoice").disabled = false; // will get enabled after .5 seconds .if you intended to do do
}, 500);
document.getElementById("movechoice").disabled = true; // for .5 seconds (till the time your function is delayed) it will be disabled
あなたが入力フィールドが0.5秒まで、または0.5秒後に無効のままにしたいですか? –
詳細を表示するための完全なコードを投稿できますか –