当前位置:网站首页>EasyUI reset multi condition query
EasyUI reset multi condition query
2022-06-28 06:00:00 【Coder without code】
When we use multiple criteria to query data , If after query , You need to query again , You need to clear the original query criteria , Then enter the new query criteria . The following applies only to easyui frame , Native js It has its own set of js Code , Other frameworks may also have their own functions . therefore , Only applicable to easyui.
First of all input Reset of text box ,
<input type="text" id="SIP" name="a" size="20"
onkeydown="if(event.keyCode==13) searchCity()" />I gave him a definition name, Use name To reset . Next is the drop-down box , It also defines name
<select id="xy" class="easyui-combobox" name="xieyi" style="width:200px;" onkeydown="if(event.keyCode==13) searchCity()">
<option > Select protocol type </option>
<option>ssh</option>
<option>wts</option>
<option>vnc</option>
<option>remoteadmin</option>
<option>bo2000</option>
<option>ftp</option>
<option>pcany</option>
</select>Then is , Reset button :
<a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="doReset()"> Reset </a>Last , Reset function , That is to say doReset() function :
/* Query criteria reset */
function doReset(){
$('#xy').combobox('setValue',' Select protocol type ');
$('input[name=a]').val("");
}Just click the reset button , It can be reset .
边栏推荐
- easyui下拉框选中触发事件
- Shanghai Yuge ASR CAT1 4G module 2-way low power 4G application
- Flink window mechanism (two waits and the last explanation)
- 什么是WebRTC?
- 学术搜索相关论文
- 预训练模型参数不匹配
- V4L2 驱动层分析
- Official answers to the "network security" competition questions of the 2022 national vocational college skills competition
- Sklearn Feature Engineering (summary)
- Data midrange: implementation and summary of AI midrange
猜你喜欢

若依实现下拉框

Jenkins continues integration 2

How the third-party libraries in cocoapod reference local header files

cocoapod中的第三方库怎么引用本地头文件

什么是WebRTC?

Shanghai Yuge ASR CAT1 4G module 2-way low power 4G application

How popular are FB and WhatsApp mass messages in 2022?

death_satan/hyperf-validate

Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance

高质量国产立体声编解码器CJC8988,Pin to Pin替代WM8988
随机推荐
联想混合云Lenovo xCloud,新企业IT服务门户
使用pytorch和tensorflow计算分类模型的混淆矩阵
Error: the following arguments are required:
numpy. reshape, numpy. Understanding of transfer
Slow content advertising: the long-term principle of brand growth
Filecoin hacker song developer competition
Data middle office: six questions data middle office
自定义 cube-ui 弹出框dialog支持多个且多种类型的input框
Socket. Io long Connection Push, version Control, Real - Time Active user volume Statistics
Caused by: com.fasterxml.jackson.databind.exc.InvalidFormatException:异常解决
UICollectionViewDiffableDataSource及NSDiffableDataSourceSnapshot使用介绍
Lenovo hybrid cloud Lenovo xcloud, new enterprise IT service portal
Deep learning 19 loss functions
Difficulty calculation of Ethereum classic
深度學習19種損失函數
Data midrange: implementation and summary of AI midrange
[CAD drawing Video] AutoCAD 2014 master's way
easyui 重置多条件查询
Sharing tips for efficient scripting
使用SQL select count distinct查询语句统计数据库中某个字段的唯一值总数量