Home > Web Front-end > JS Tutorial > Clear the input and select of query conditions_javascript skills

Clear the input and select of query conditions_javascript skills

WBOY
Release: 2016-05-16 17:03:52
Original
1820 people have browsed it

将input、select清空

复制代码 代码如下:

var inputObjs=jQuery("#queryAdvancedDiv input[type='text']");
for(var i=0;ivar inputObj = inputObjs[i];
inputObj.value="";
}
var selectObjs = jQuery("#queryAdvancedDiv select");
for(var i=0;ivar selectObj = selectObjs[i];
selectObj.value="";
}
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template