Using Settimeout To Add Cooldown Time To A Button
I try to create an object method called coolDown, when a button is clicked, it will disable the button and unlock it afer cooling time is over. But when I test it, it will disable
Solution 1:
it should be
document.getElementById("cd").disabled = false; // without ""
Boolean("false");
is evaluated to true
Post a Comment for "Using Settimeout To Add Cooldown Time To A Button"