0
양식 필드를 모두 지운 후에 페이지를 새로 고칠 수 있습니까? 이 기능은 별도의 기능입니까 아니면 기존 스크립트에 추가 할 수 있습니까? 난 당신이 JQuery와에서뿐만 아니라이 방법을 수행 할 수 있습니다 really.But이 작동 여부를 알 수없는모든 양식 필드를 지운 후에 페이지 새로 고침 (jquery)
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;
}
});
}