Disabling button usage with timeout functions - Javascript jQuery

Javascript examples for jQuery:Form Button

Description

Disabling button usage with timeout functions

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <script type="text/javascript" src="https://code.jquery.com/jquery-1.8.3.js"></script> 
      <script type="text/javascript">
    $(function(){/*from w  ww . j  ava2s. c o m*/
$("#test1").attr("disabled", false);
$("#test2").attr("disabled", true);
    });

      </script> 
   </head> 
   <body> 
      <button id="test1"></button>
      <button id="test2"></button>  
   </body>
</html>

Related Tutorials