<input onclick="otherTxt.value=onetxt.value" value=modify type=button>

解决方案 »

  1.   

    onclick="otherTxt.value=onetxt.value" 
    这句话能解释一下吗?
      

  2.   

    当你用鼠标点击时,将文本框onetxt内容赋给otherTxt文本框,otherTxt和onetxt都是文本框的名称啊。
      

  3.   

    你将你代码中的下面这两行分别给一个ID:
    <td id=td1><a href="/resourceone/servlet/ListAppInfoServlet?apptypeid=<%= apptype.getApptypeid() %>" ><%= apptype.getApptypename() %></a>&nbsp;</td>
    <td id=td2><%= apptype.getApptypedesc() %>&nbsp;</td>
    然后你在change()语句中这样改:
    function change(){
      form1.Submit3.disabled=false;
      form1.apptypename.value=td1.innerText;
      form1.apptypedesc.value=td2.innerText;
    }你看看是不是这样?