重置表单,reset只是恢复初始值
程序员文章站
2022-04-04 12:17:53
...
$(document).on('click','.reset',function () {
$(':input','#search-form').not(':button,:submit,:reset,:hidden').val('').removeAttr('checked').removeAttr('selected');
})