form提交前校验(非ajax提交表单)
<form name="form1" action="***.htm" method="post" οnsubmit="return check();">
</form>
[color=red]js:[/color]
function check(){
//to do some check ;return false 不提交表单;return true 提交表单
return true;
}
<form name="form1" action="***.htm" method="post" οnsubmit="return check();">
</form>
[color=red]js:[/color]
function check(){
//to do some check ;return false 不提交表单;return true 提交表单
return true;
}