form submission disabling - Javascript jQuery

Javascript examples for jQuery:Form Submit

Description

form submission disabling

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.5.2.js"></script> 
  <script type="text/javascript">
    $(window).load(function(){/*from  ww w.  j  a  v  a  2 s  .  c om*/
$('input[type="submit"]').attr("disabled", "disabled");
    });

      </script> 
 </head> 
 <body> 
  <input type="submit" val="Submit">  
 </body>
</html>

Related Tutorials