首页javascriptinputjQuery Form - 如何禁用输入控制

jQuery Form - 如何禁用输入控制

我们想知道如何禁用输入控制。

 
<html>
  <head>
    <script type="text/javascript" src='http://code.jquery.com/jquery-1.5.2.js'></script>
    <script type="text/javascript">
      $(document).ready(function(){
          $("input").attr("disabled", "disabled");
      });
    </script>
  </head>
  <body>
   <form>
    <input type="checkbox" name="a" />
    <span>A</span>
    <input type="checkbox" name="b" />
    <span>B</span>
    <input type="checkbox" name="c" checked="checked" />
    <span>C</span>
  </form>
  </body>
</html>