把ID换掉就可以了,,我试过用outerHTML更换后数组元素就改变了,,

解决方案 »

  1.   

    但是在该text上,我还要实现添加功能,即要通过它添加数据
      

  2.   

    怎样弄啊?下面是我的代码
    <TR>
          <TD width="464" align="left"> 
            &nbsp;类型编号:
            <input name="wf[]" type="text" class="input" id="wftypeid" size="40">
            &nbsp;<font color="red">*</font></TD>    
    </TR>  
        
        <TR> 
          <TD width="464" align="left"> 
            &nbsp;类型名称:
            <input name="wf[]" type="text" class="input" id="wfoperation" size="40">
            </TD>   
        </TR>  
        
        <TR> 
          <TD width="464" align="left"> 
            &nbsp;处理类型:
            <input name="wf[]" type="text" class="input" id="wftype" size="40">
            &nbsp;<font color="red">*</font></TD>   
        </TR>  
        
        <TR> 
          <TD width="464" align="left"> 
            &nbsp;备&nbsp;&nbsp;&nbsp;&nbsp;注:
            <input name="wf[]" type="text" class="input" id="re" size="40">
            </TD>   
        </TR>
      

  3.   

    如果把它设为readonly
    我还能用javascript把它readonly去掉吗?
      

  4.   

    可以的,document.all.你的文本框的name或id.readOnly = "true"
    document.all.你的文本框的name或id.readOnly = "false"