当前位置:网站首页>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 .
边栏推荐
- YYGH-BUG-03
- Apple MDM Bypass 免越狱绕过MDM配置锁 免费
- Using pytorch and tensorflow to calculate the confusion matrix of classification model
- windows上安装redis并永久修改密码,及ssm框架集成redis
- idea根据数据库表生成实体类
- High quality domestic stereo codec cjc8988, pin to pin replaces wm8988
- 原动力×云原生正发声 降本增效大讲堂
- 使用SSM框架,配置多个数据库连接
- What is the e-commerce conversion rate so abstract?
- Relevant implementation records of CSI and local disk
猜你喜欢
随机推荐
Introduction to uicollectionviewdiffabledatasource and nsdiffabledatasourcesnapshot
OpenSCAP 简介
YYGH-8-预约挂号
1404. 将二进制表示减到1的步骤数
Working principle of es9023 audio decoding chip
使用pytorch和tensorflow计算分类模型的混淆矩阵
【MYSQL】所有查询表中有2千万数据--sql如何优化
猿粉猿动力-开发者活动袭!
Filecoin hacker song developer competition
脚本语言和编程语言
Ethereum Classic的难度计算|猿创征文
Mosaic data enhanced mosaic
Global country (and region) information JSON data
How to add live chat in your Shopify store?
What is webrtc?
mac下安装多个版本php并且进行管理
Openharmony gnawing paper growth plan -- json-rpc
Jenkins continues integration 2
Independent station sellers are using the five e-mail marketing skills, do you know?
Yygh-6-wechat login









