您现在的位置是:孟垂博自媒体博客 ✈ JQuery
javascript中input必须填写才能执行按钮点击搜索
08-26最后更新时间:2020-10-11【已收录】人已围观收藏
简介<form name="searchform" method="post" action="/e/search/index.php"> <table border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder"> <
<form name="searchform" method="post" action="/e/search/index.php">
<table border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
<input type="hidden" name="tbname" value="news">
<input type="hidden" name="tempid" value="1">
<input type="hidden" name="andor" value="and">
<tr class="header">
<td colspan="2">数据库信息查询系统</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="200">姓名:</td>
<td width="388">
<input type="hidden" name="show[]" value="title">
<input type="hidden" name="hh[]" value="EQ">
<input name="keyboard[]" type="text" id="test">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td>证书编号:</td>
<td>
<input type="hidden" name="show[]" value="id">
<input type="hidden" name="hh[]" value="EQ">
<input name="keyboard[]" type="text" >
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td> </td>
<td>
<input type="submit" name="Submit" value="马上搜索" onClick=" return testContent('test')" class="fsdf">
<font color="#666666"></font>
</td>
</tr>
</table>
</form>
</div>
<script>
function add() {
var subname = $('input[name=keyboard[]]').val();
if(subname == "") { //判断用户名是否为空
alert("请输入姓名!");
form2.subname.select();
return false;
}
}
</script>
《javascript中input必须填写才能执行按钮点击搜索.doc》
如果这篇文章对你有所帮助,劳烦点个赞
推荐度:
很赞哦! ()
下一篇:返回列表
相关文章
- 帝国CMS内容页Title显示标题还是副标题的简单判断2019-10-17
- 医疗行业能提升80%业绩的信息流投放策略2020-09-16
- 自己经常使用的css3代码生成器提高编写效率(经常补充)2019-07-11
- 巨量引擎推广中重复表单多解决办法2020-07-05
- php留言板怎么只显示登录会员自己发布的文章2019-07-06
- 响应式布局调整浏览器窗口的大小保证宽高比不变2019-09-22
- 这世上的2019-08-03
- 菜鸟驿站的盈利模式是怎么样的?2019-10-12
- 帝国cms两个表之间数据之间关联调用2019-11-02
- 半月内让你的网站权重提升到“权22019-07-08
文章评论
点击排行
本栏推荐
标签云(最新)
站点信息
- 建站时间:2019年06月15日
- 网站程序:帝国CMS7.5
- 博客模板:可免费共享
- 文章统计:235篇文章
- 时间卷轴:时间轴
- 标签管理:标签云
- 网站地图:XML网站地图
- 微信二维码:扫描一下,你我就是有缘