c# - how to disable a button for two seconds after click and then enable itself again? -
How to disable a button for two seconds after a click and then enable itself again?
I want to do this in JavaScript onClientClick and after running OnClientClick it will run the OnClick event then enable the button again "post-text" itemprop = "text" >
You can use this function:
// disable the button setTimeout ("EnableTheButton ();", 2000); // This is done by clicking inside the event then declare this function:
function EnableTheButton () Enable {// button here}
Comments
Post a Comment