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

Clear the input and select of query conditions_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:03:521796browse

将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="";
}
Statement:
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