选中:一次付款 ,右边表格里内容隐藏。
     贷款购车, 右边表格里内容显示。请各位大侠指点。
以下代码无法实现我所需要功能,请检查,谢谢!<form id="form1" name="form1" method="post" action=""> 
<label>
    <input name="radio_one" type="radio" value="1" checked   onclick= "if(this.checked==true)radiobutton.disabled=ture;" />
    </label>
   一次付清
  <label>
  <input type="radio" name="radio_one" value="0" checked   onclick= "if(this.checked==true)radiobutton.disabled=false;" />
  </label>
  贷款购车
  </td>
  <td>
  首付:
  <input  type="radio" name="radiobutton" value="radiobutton" />
  三成  
  <input  type="radio" name="radiobutton" value="radiobutton" />
  四成
  <input  type="radio" name="radiobutton" value="radiobutton" />
  五成 
  <input  type="radio" name="radiobutton" value="radiobutton" /> 
</form>

解决方案 »

  1.   

    这里不需要disabled来互动。反正选了一个不能选另一个。
      

  2.   

    这样写
    <table>
    <form id="form1" name="form1" method="post" action="">  
    <tr>
    <td><label>
      <input name="radio_one" type="radio" value="1" checked onclick= "if(this.checked==true) this.parentNode.parentNode.parentNode.childNodes[1].style.display='none';" />
      </label>
      一次付清
      <label>
      <input type="radio" name="radio_one" value="0" checked onclick= "if(this.checked==true)this.parentNode.parentNode.parentNode.childNodes[1].style.display='';" />
      </label>
      贷款购车
      </td>
      <td>
      首付:
      <input type="radio" name="radiobutton" value="radiobutton" />
      三成   
      <input type="radio" name="radiobutton" value="radiobutton" />
      四成
      <input type="radio" name="radiobutton" value="radiobutton" />
      五成  
      <input type="radio" name="radiobutton" value="radiobutton" />  
    </td>
    </tr>
    </form>
    </table>