Javascript examples for jQuery:Form Input
Disabling inputs with jQuery
<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>