当前位置:网站首页>easyui 重置多条件查询
easyui 重置多条件查询
2022-06-28 05:55:00 【不会code的coder】
当我们使用多个条件进行查询数据时,如果查询后,需要再一次进行查询,需要把原来的查询条件进行清空,然后输入新的查询条件。以下只适用于easyui框架,原生js有它自己的一套js代码,其他框架也可能有自己的函数。所以,只适用于easyui。
首先是input文本框的重置,
<input type="text" id="SIP" name="a" size="20"
onkeydown="if(event.keyCode==13) searchCity()" />我给他定义了一个name,使用name进行重置。接下来是下拉框,也定义了个name
<select id="xy" class="easyui-combobox" name="xieyi" style="width:200px;" onkeydown="if(event.keyCode==13) searchCity()">
<option >选择协议类型</option>
<option>ssh</option>
<option>wts</option>
<option>vnc</option>
<option>remoteadmin</option>
<option>bo2000</option>
<option>ftp</option>
<option>pcany</option>
</select>然后就是,重置按钮:
<a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="doReset()">重置</a>最后,就是重置函数,也就是doReset()函数:
/* 查询条件重置 */
function doReset(){
$('#xy').combobox('setValue','选择协议类型');
$('input[name=a]').val("");
}只要点击重置按钮,就可以重置了。
边栏推荐
- Where is the era bonus for developers?
- Solution of dam safety automatic monitoring system for medium and small reservoirs
- 使用SQL select count distinct查询语句统计数据库中某个字段的唯一值总数量
- sklearn 特征工程(总结)
- The windows environment redis uses AOF persistence and cannot generate an AOF file. After generation, the content of the AOF file cannot be loaded
- Use of JDBC
- 独立站卖家都在用的五大电子邮件营销技巧,你知道吗?
- JSP connects with Oracle to realize login and registration (simple)
- qtcanpool 知 05:无边框
- 电子邮件营销的优势在哪里?为什么shopline独立站卖家如此重视?
猜你喜欢

Prime mover × Cloud primordial is making sound, reducing cost and increasing efficiency lecture hall

Oracle condition, circular statement
![[CAD drawing Video] AutoCAD 2014 master's way](/img/19/7013333c028d7db02e356661b9ffc3.jpg)
[CAD drawing Video] AutoCAD 2014 master's way

自定义 cube-ui 弹出框dialog支持多个且多种类型的input框

联想混合云Lenovo xCloud,新企业IT服务门户

Use of JDBC

电子邮件营销的优势在哪里?为什么shopline独立站卖家如此重视?

Yygh-8-appointment registration

File foundation - read / write, storage

death_satan/hyperf-validate
随机推荐
Data warehouse: detailed explanation of hierarchical design
Typescript base type
联想混合云Lenovo xCloud,新企业IT服务门户
猿粉猿动力-开发者活动袭!
Data warehouse: financial / banking theme layer division scheme
Main functions of 5ggnb and ng ENB
Data middle office: construction ideas and implementation experience of data governance
JSP connects with Oracle to realize login and registration (simple)
Use of JDBC
Codeworks 5 questions per day (1700 for each)
Flink 窗口机制 (两次等待, 最后兜底)
Jenkins continues integration 2
Sharing tips for efficient scripting
Object对象转 List集合
V4L2 驱动层分析
数据中台:AI中台的实施与总结
数据中台:数据治理的建设思路以及落地经验
[MySQL] all query tables contain 20million data -- how to optimize SQL
Maskrcnn, fast RCNN, fast RCNN excellent video
Where is the era bonus for developers?