Disabling inputs with jQuery - Javascript jQuery

Javascript examples for jQuery:Form Input

Description

Disabling inputs with jQuery

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.4.2.js"></script> 
      <script type="text/javascript">
    $(function(){/* w  ww . j a v  a2s  .c o  m*/
window.setTimeout(function () { $("input").attr("disabled", true); }, 5000);
    });

      </script> 
   </head> 
   <body> 
      <input type="text">  
   </body>
</html>

Related Tutorials