test.rows[1].cells[0].innerText='aaa';

解决方案 »

  1.   

    <form name=frm>
    <TABLE  id=test >
    <tr>
     <th>标题一</th>
     <th>标题二</th>
     <th>标题三</th>
    </tr>
    <TR>
     <TD><input type="text" name=a></TD>
     <TD><input type="text" name=b></TD>
     <TD><input type="text" name=c></TD>
    </TR>
    </TABLE>
    </form>
    <script>
    frm.a.value='a'
    frm.b.value='b'
    frm.c.value='c'
    </script>
      

  2.   

    在table中加入<span>再对他进行付值。
      

  3.   

    test.rows[i].cells[j].innerText='xxxx';
      

  4.   

    test.rows[i].cells[j].children[0].value='xxxx';
      

  5.   

    test.rows[1].cells[0].innerText='aaa';
      

  6.   

    test.rows[1].cells[0].innerText='aaa';不行,我试过!
      

  7.   

    <table id=test cellSpacing=0 borderColorDark=#ccffcc cellPadding=0 width="100%" align=center borderColorLight=#396942 border=1>
     <tr>
      <td>
       will change
      </td>
     </tr>
    </table>
    <script>
    test.rows[0].cells[0].innerText="changed";
    <script>
    这段代码该如何调通?也就是让表格里最后显示changed!
      

  8.   

    <script>是简单写写,当然得写全了<script language="JavaScript">
        test.rows[0].cells[0].innerText="changed";
    </script>