<script language="javascript">
function check(){
if(Trim(document.form1.recontent.value)==""){
alert("please input the content!");
document.form1.recontent.focus();
return false;
} return true;
}
</script> -----------------------------//script定义的函数用来检查是否输入内容
<form id="form1" name="form1" method="post" action="replayok.jsp" onsubmit="return check()"> ------//此为form表单的头部
各位大神 为什么form表单里面调用我的check函数完全没有作用啊?
感谢各位的回馈
function check(){
if(Trim(document.form1.recontent.value)==""){
alert("please input the content!");
document.form1.recontent.focus();
return false;
} return true;
}
</script> -----------------------------//script定义的函数用来检查是否输入内容
<form id="form1" name="form1" method="post" action="replayok.jsp" onsubmit="return check()"> ------//此为form表单的头部
各位大神 为什么form表单里面调用我的check函数完全没有作用啊?
感谢各位的回馈


