本帖最后由 kinvs008 于 2011-05-19 19:19:52 编辑

解决方案 »

  1.   

    严重表单是吧?
    提示红色的话,就用this代替它咯!
    return checkEmpty(this);像你那样写是没错的!指定form的名称
      

  2.   

    return checkEmpty(document.form)
    or
    return checkEmpty(this)
      

  3.   

    return checkEmpty(document.form)
    或者
    return checkEmpty(this)
    或者你也可以改下js验证   不要传参
      

  4.   

    <form name="form" method="post" action="goodsAction.do?action=11&id=<%=goodsForm.getId()%>&=1" onSubmit="return checkEmpty(form)">不是红色表单,我的意思事这句话里面的form提示没有定义
      

  5.   


    IE8是没问题的!提示没有定义的话,就用this代替你的form.