两种搜索模式更换
2016-07-28 13:53
393 查看
<form action="javascript:search_brand()" name="searchForm"> <img src="<?php echo base_url('Public/images/icon_search.gif')?>" width="26" height="22" border="0" alt="SEARCH"> <input type="text" name="ss" placeholder="请输入搜索关键字" id="ss" size="15"> <input type="text" name="ss" style="display: none" id="sss" class="ss" size="15"/> <input type="button" value="搜索" style="display: none" class="sou"> <b id="bi" style="display: none;color: red;cursor: pointer">换种方式搜索</b> <b id="zhan" style="color: red;cursor: pointer">换种方式搜索</b> </form> <script> $(document).on('click','#zhan',function(){ //点击换种方式搜索 $('#zhan').hide('hide');//展示隐藏 $('#ss').hide('hide');//文本框隐藏 $('#sss').show('slow')//换一个文本框展示 $('.sou').show('slow');//搜索按钮展示 $('#bi').show('slow');//换一个字段提示 }) $(document).on('click','#bi',function(){ $('.sou').hide('hide'); $('#bi').hide('hide'); $('#zhan').show('slow'); $('#ss').show('slow'); $('#sss').hide('hide') }) </script>
相关文章推荐
- IP地址与数字地址相互转换
- iOS开发之直播App流程介绍,直播资料收集汇总,视频推流,视频拉流,SMTP、RTMP、HLS、 PLPlayerKit
- Android提醒微技巧,你真的了解Dialog、Toast和Snackbar吗?
- Android_ProgressBar
- jQuery插件的开发
- Android Service
- Linux 查看日志常用命令
- Spring MVC 中拦截器 HandlerInterceptorAdapter的使用
- 注册表从入门到精通
- 自我介绍
- 解决Eclipse SVN文件冲突详解
- Android 众多的布局属性详解
- 织梦(Dedecms)文档关键词维护,文章页自动添加关键词内链锚文本
- linux regulator driver framwork
- 深入理解Android中的Handler机制
- Linux系统下ElasticSearch的环境搭建(含插件)
- 织梦cms生成的文章页没有css样式的解决办法
- comparable的使用(用于list)
- oracle将表名和字段名变为大写
- IOS实现Voip应用后台运行需要的几个配置项