兄弟们,请继续帮帮我吧
我已将代码改过来了,即Check = False,它还是会提交.
是不是onSubmit="return check()"有问题?
帖出修改后的代码:
<Script language=VBScript>
function Check()
if document.form_q.rq1.value <>"" and not isdate(document.form_q.rq1.value)then
Check = false
else if form1.rq2.value <> "" and not isdate(document.form_q.rq2.value) then
Check = false
else
Check = true
end if
end function
</Script>
Form 为:
<form action="default.asp" onSubmit="(此处用 return call 空都试过)Check()" method="post" name="form_q" id="form_q" >