すべてのフォーム フィールドをクリアした後、ページを更新することはできますか? これは別の機能ですか、それとも既存のスクリプトに追加できますか?
function clear_form_elements(ele) {
$(ele).find(':input').each(function() {
switch(this.type) {
case 'password':
case 'select-multiple':
case 'select-one':
case 'text':
case 'textarea':
$(this).val('');
$(this).removeAttr("style");
break;
case 'checkbox':
case 'radio':
this.checked = false;
}
});
}