HTML按钮
<button type="button" onclick="formReset()">重置</button>
jquery方法
function formReset(){
$("#searchForm :input").not(":button,:reset,:hidden,:submit").val("").removeAttr("checked").removeAttr("selected");
}
HTML按钮
<button type="button" onclick="formReset()">重置</button>
jquery方法
function formReset(){
$("#searchForm :input").not(":button,:reset,:hidden,:submit").val("").removeAttr("checked").removeAttr("selected");
}
685

被折叠的 条评论
为什么被折叠?