<table id=yourtable>
<tr><td></td></tr>
</table>
<input type=radio name=radio1 onclick="document.all.yourtable.rows[0].cells[0].innerText='Changed1!'">
<input type=radio onclick="document.all.yourtable.rows[0].cells[0].innerText='Changed2!'">

解决方案 »

  1.   

    <p>把下面的表格的第一行第一列
    <br>
    <input type=radio name=radio1 id=r1 onclick="document.all.yourtable.rows[0].cells[0].innerText='aaa'"></input><label for=r1>点这个变成 aaa</label>
    <br>
    <input type=radio name=radio1 id=r2 onclick="document.all.yourtable.rows[0].cells[0].innerText='bbb'"></input><label for="r2">点这个变成 bbb</label><table id=yourtable border=1>
    <tr><td>这里是要改变的内容</td><td>&nbsp;</td></tr>
    <tr><td>&nbsp;</td><td>&nbsp;</td></tr>
    <tr><td>&nbsp;</td><td>&nbsp;</td></tr>
    </table>
      

  2.   

    <script>
    function ChangeTable(i)
    {
      document.all.yourtable.rows[0].cells[0].innerText='radio " + i + " Change the table!';
    }
    </script><table id=yourtable>
    <tr><td></td></tr>
    </table>
    <input type=radio name=radio1 onclick="ChangeTable(1)"><input>
    <input type=radio name=radio2 onclick="ChangeTable(2)"><input>
      

  3.   

    <table id=yourtable border=1 width=80>
    <tr><td></td><td><input type=radio name=radio1 value="yes" onclick="document.all.yourtable.rows[0].cells[0].innerText=this.value"></td>
    </tr>
    <tr><td> </td><td><input type=radio name=radio1 value="no" onclick="document.all.yourtable.rows[1].cells[0].innerText=this.value"></td>
    </tr>
    </table>
      

  4.   

    我看个各位的回复,我发现我说得不够清楚!是这样的,我不是要改变内容,而是改变表中的控件。譬如说:现在表中有一个text控件,假如我点击radio后,这个表中可能要增加其他的控件,例如radio。怎么解决呀?
      

  5.   

    觉得还是不是很明白你的意思
    <table id=yourtable>
    <tr><td><input id=txt></td></tr>
    </table>
    <script>
    function add(){
    var i;
    var str="<input type='radio' name='radio"+i+"'>"
    document.all.yourtable.rows[0].cells[0].innerHTML+=str;
    i++;
    }
    </script>
    <input type=submit name=add onclick="add()">
      

  6.   

    我的意思是,假如现在我的表单里有1行2列,当我点击radio后,改变第二列里的原来的东西,原来假如是一个文本框,现在我要变成三个文本框和三个按钮。我等待着!我的qq是4484945
      

  7.   

    <table id=yourtable border=1>
    <tr><td>&nbsp;</td></tr>
    </table>
    <input type=radio name=radio1 onclick="document.all.yourtable.rows[0].cells[0].innerText='Changed1'">
    <input type=radio name=radio1 onclick="document.all.yourtable.rows[0].cells[0].innerText='Changed2'">