(024)jquery_表单选择器radio

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
  <head>
    <title>form_password.html</title>
    
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
    <style type="text/css">
    </style>
    <script type="text/javascript" src="../js/jquery/jquery190.js"></script>
    <script type="text/javascript">
        $(document).ready(function(){
            $("#frmTest :radio").attr("disabled","true");
        });
    </script>
  </head>
  
  <body>
           <h3>将表单中单选按钮设为不可用</h3>
        <form id="frmTest" action="#">
            <input type="button" value="Input Button" /><br />
            <input id="Radio1" type="radio" />
            <label for="Radio1"></label>
            <input id="Radio2" type="radio" />
            <label for="Radio2"></label><br />
            <button>Button</button><br />
        </form>
  </body>
</html>

 

posted @ 2014-12-11 10:56  雪中飞雁  阅读(66)  评论(0)    收藏  举报