当前位置:网站首页>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 .
边栏推荐
猜你喜欢

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

Valueerror: iterative over raw text documents expected, string object received

socke.io長連接實現推送、版本控制、實時活躍用戶量統計

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

Mysql-17- create and manage tables

What is the e-commerce conversion rate so abstract?

How popular are FB and WhatsApp mass messages in 2022?
![Taobao seo training video course [22 lectures]](/img/81/21e844542b35010760d061abe905e9.jpg)
Taobao seo training video course [22 lectures]

How to add live chat in your Shopify store?

Jenkins持续集成1
随机推荐
Jenkins continuous integration 1
从0配置redis
numpy. reshape, numpy. Understanding of transfer
19 fonctions de perte d'apprentissage profond
Video tutorial on website operation to achieve SEO operation [21 lectures]
Example of MVVM framework based on kotlin+jetpack
Data midrange: implementation and summary of AI midrange
Difficulty calculation of Ethereum classic
Where is the era bonus for developers?
What is the e-commerce conversion rate so abstract?
全球国家(和地区)信息JSON数据
Syn retransmission caused by IPVS
YYGH-BUG-03
Mosaic data enhanced mosaic
Mysql-17- create and manage tables
使用pytorch和tensorflow计算分类模型的混淆矩阵
Comparison between relational database and document database
YYGH-BUG-02
开发者的时代红利在哪里?
Data middle office: construction ideas and implementation experience of data governance