<form name="form3" action="cili.asp" method="post"> <table width="490" border="0" align="center" cellpadding=" function ConfirmIsNull() { if(document.getElementById ("xinxi").value=="" ) { alert ("标题不能为空!"); return false ; } }
<form name="form3" action="cili.asp" method="post" onsubmit="ConfirmIsNull()"> <script> function ConfirmIsNull() { if(document.getElementById ("xinxi").value=="" ) { alert ("标题不能为空!"); return false ; } } </script>
<form name="form3" action="cili.asp" method="post" onsubmit="ConfirmIsNull()"> <script> function ConfirmIsNull() { if(document.getElementById ("xinxi").value=="" ) { alert ("标题不能为空!"); return false ; } } </script>
解决方案 »
- extjs grid.Panel 的问题
- jquery怎么获取下面的值?
- asp.net正则如何过滤Javascript和Javascript里面的内容
- 做一个图片切换效果的js
- javascript检测到页面输入有误,怎样在页面把有错的地方用不同颜色标示?
- js 验证文本框的格式是否合法
- 关于checkbox的问题,急ing
- 问题两则:display和visibility的区别...
- 如何得到字符串中,字符A出现的次数?
- jQuery webcam plugin调用webcam.capture()方法提示不存在
- 我的ie不能看到flash,使用swfobject.js编辑的网页
- 求助JS 操作 COOKIES问题
function ConfirmIsNull() { if(document.getElementById ("xinxi").value=="" ) { alert ("标题不能为空!"); return false ; } } </script>
<form name="form3" action="cili.asp" method="post"> <table width="490" border="0" align="center" cellpadding=" function ConfirmIsNull() { if(document.getElementById ("xinxi").value=="" ) { alert ("标题不能为空!"); return false ; } }
<form name="form3" action="cili.asp" method="post" onsubmit="return ConfirmIsNull()"> <script> function ConfirmIsNull() { if(document.getElementById ("xinxi").value=="" ) { alert ("标题不能为空!"); return false ; } } </script>
onsubmit="return ConfirmIsNull()"其他的不变
if(document.getElementById ("xinxi").value==""){
alert ("标题不能为空!");
return false ;
}
return true;
} </script><form name="form3" action="cili.asp" method="post" onsubmit="return ConfirmIsNull()">
<input type="text" id="xinxi"><input type="submit" >
</form>