<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script src="Scripts/jquery/jquery-1.4.1.min.js"></script> <title></title> <script type="text/javascript"> $(document).ready(function () { // 按钮不可用, 禁用 $('#btnLogin').attr('disabled', 'true'); //// 按钮可用, 启用 //$('#btnLogin').removeAttr('disabled'); }); </script> </head> <body> <input type="button" id="btnLogin" value="登录"/> </body> </html>