我刚又试过:
dgmargin_R0_Textbox2.value,dgmargin_R0_Textbox3.value等的值不会提示为空或不为对象,为何就触发onkeyup的那个文本框会提示这个问题呢?

解决方案 »

  1.   

    document.all.dgmargin_R0_TextBox1.value
      

  2.   

    ordocument.Form1.elements["dgmargin:R0:Textbox1"].value
      

  3.   

    用document.all.item("dgmargin_R0_TextBox1").value试试
      

  4.   

    TO:net_lover(孟子E章) 
    我有试过document.all.dgmargin_R0_TextBox1.value还不行,试试你们提的其他两个,谢谢!
      

  5.   

    TO:net_lover(孟子E章) 
    document.Form1.elements["dgmargin:R0:Textbox1"].value
    出现同样的提示,说
    document.Form1.elements.dgmargin_R0_Textbox1.value
    为空或不为对象!
    为什么会这样??
      

  6.   

    document.all.item("dgmargin_R0_TextBox1").value这个又可以,真的搞不懂,这是为什么?