up,高手来指点.
如何点了checkbox,才显示其他的控件(text,radio)??

解决方案 »

  1.   


    obj.style.display='block';
    else
    obj.style.display='none';
      

  2.   

    obj.style.display='block';
    else
    obj.style.display='none';修改了还是有错误.
      

  3.   

    if (object.checked == ture){true
      

  4.   

    <html>
    <head>
    <title>无标题文档</title>
    <script language="javascript">function showadv(object){
    var obj =document.getElementById("selective");
    if (object.checked){
    obj.style.display="block";
        }else{
    obj.style.display="none";
    }
    }</script>
    </head><body>
    <form name="form1" method="post" action="">
       <input id="checkbox" type="checkbox" name="checkbox" onClick="showadv(this)" >
      可选信息
    <div id="selective" style="display:none"> 
       <table>
    <tr>
    <td>1234</td><td>5678</td>
    </tr>
    <tr>
    <td>1234</td><td>5678</td>
    </tr>
    <tr>
    <td>1234</td><td>5678</td>
    </tr>
    </table>
    </div>

    <table> 
    </form>
    </body>
    </html>
      

  5.   

    obj.style.display=block;
    obj.style.display=none;
    这2句应该加上引号
    obj.style.display="block";