Javascript examples for jQuery:Form Button
Disabling button usage with timeout functions
<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>