是不是 document.forms[0].acc.code.value 这个没取到对象啊?
试试这样: document.all("acc.code").value

解决方案 »

  1.   

    document.forms[0].elements["acc.code"].value
      

  2.   

    你要先区分一下,看事javascript错误还是别的什么,具体到哪一行的错误才能更快找到原因.
      

  3.   

    document.getElementById("acc.code").value
      

  4.   

    行:1197
    字符:2
    代码:0
    错误:缺少对象
    网址:http://localhost:8080/CmmInfoPt/addbusinessmanagementy.jsp就是这一行  document.getElementById("acc.code").value
      

  5.   


    document.forms[0].getElementById("acc.code").value晕,丢了form了