当前位置:网站首页>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 .
边栏推荐
- Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance
- 密码学笔记
- What is the e-commerce conversion rate so abstract?
- Data middle office: six questions data middle office
- JSP
- Sharing tips for efficient scripting
- 1404. number of steps to reduce binary representation to 1
- idea根据数据库表生成实体类
- Valueerror: iterative over raw text documents expected, string object received
- Main functions of 5ggnb and ng ENB
猜你喜欢

Jenkins继续集成2

YYGH-BUG-03

Example of MVVM framework based on kotlin+jetpack

Jenkins持续集成1

YYGH-BUG-03

Working principle of es9023 audio decoding chip

lombok @EqualsAndHashCode 注解如何让对象.equals()方法只比较部分属性

What is the e-commerce conversion rate so abstract?

6. graduation design temperature and humidity monitoring system (esp8266 + DHT11 +oled real-time upload temperature and humidity data to the public network server and display the real-time temperature

YYGH-7-用户管理
随机推荐
Data warehouse: detailed explanation of hierarchical design
深度学习19种损失函数
YYGH-BUG-02
High quality domestic stereo codec cjc8988, pin to pin replaces wm8988
OpenSCAP 简介
numpy.reshape, numpy.transpose的理解
CSI以及本地盘的相关实现记录
V4L2 驱动层分析
猿粉猿动力-开发者活动袭!
高质量国产立体声编解码器CJC8988,Pin to Pin替代WM8988
ES9023音频解码芯片的工作原理
What is the e-commerce conversion rate so abstract?
Qtcanpool q05: no border
密码学笔记
Binder interview: memory management unit
深度學習19種損失函數
Apple MDM Bypass 免越狱绕过MDM配置锁 免费
Valueerror: iterative over raw text documents expected, string object received
easyui 重置多条件查询
[MySQL] all query tables contain 20million data -- how to optimize SQL