zoukankan      html  css  js  c++  java
  • checkbox js

    <html>   
       
    <head>   
       
    <meta   http-equiv="Content-Type"   content="text/html;   charset=gb2312">   
       
    <title>Untitled   Document</title>   
       
    </head>   
         
       
    <body>   
       
    <script   language="javascript"   type="text/javascript">   
       
    function   adjust(str,obj)   
       
    {   
       document.getElementById(str).style.display   
    =   obj.checked?"block":"none";   
       }
       
       
    </script>   
       
    <table   width="500"   border="1">   
           
    <tr>   
               
    <td><input   type="checkbox"   name="checkbox3"   value="checkbox">   
                   忙时优惠包   
                   
    <input   type="checkbox"   name="checkbox"   value="checkbox"   onClick="adjust('line1',this)">   
               长途优惠包   
               
    <input   type="checkbox"   name="checkbox2"   value="checkbox"   onClick="adjust('line2',this)">   
               短信优惠包
    </td>   
           
    </tr>   
           
    <tr>   
               
    <td   id="line1"   style="display:none"><input   name="radiobutton"   type="radio"   value="radiobutton">   
               3   
               
    <input   name="radiobutton"   type="radio"   value="radiobutton">   
               5   
               
    <input   name="radiobutton"   type="radio"   value="radiobutton">   
               10
    </td>   
           
    </tr>   
           
    <tr>   
               
    <td   id="line2"   style="display:none"><input   name="radiobutton"   type="radio"   value="radiobutton">   
               3   
                   
    <input   name="radiobutton"   type="radio"   value="radiobutton">   
               6   
               
    <input   name="radiobutton"   type="radio"   value="radiobutton">   
               10
    </td>   
           
    </tr>   
       
    </table>   
       
    </body>   
       
    </html> 
  • 相关阅读:
    快速幂模板
    部分有关素数的题
    POJ 3624 Charm Bracelet (01背包)
    51Nod 1085 背包问题 (01背包)
    POJ 1789 Truck History (Kruskal 最小生成树)
    HDU 1996 汉诺塔VI
    HDU 2511 汉诺塔X
    HDU 2175 汉诺塔IX (递推)
    HDU 2077 汉诺塔IV (递推)
    HDU 2064 汉诺塔III (递推)
  • 原文地址:https://www.cnblogs.com/simhare/p/926014.html
Copyright © 2011-2022 走看看