$("#myform")[0].reset();
$(
':input'
,
'#myform'
)
.not(
':button, :submit, :reset, :hidden'
)
.val(
''
)
.removeAttr(
'checked'
)
.removeAttr(
'selected'
);
$("#myform")[0].reset();
$(
':input'
,
'#myform'
)
.not(
':button, :submit, :reset, :hidden'
)
.val(
''
)
.removeAttr(
'checked'
)
.removeAttr(
'selected'
);
转载于:https://www.cnblogs.com/tangchangcai/p/7694890.html