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

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -