본문 바로가기

etc/jQuery

[Form] Form reset

jQuery 에서 $('#form').reset() 이 정의되어 있지 않다라고 나온다 이때 Form에 대한 reset 을 하는 방법은 다음과 같다.


// 첫번째 폼 지정

$("form")[0].reset();


// 특정 폼 지정

$("#form").each(function() { 

    this.reset(); 

}


참고 : http://rocabilly.tistory.com/30


'etc > jQuery' 카테고리의 다른 글

XML에 하위 노드 추가하기  (0) 2014.08.27
Check All Checkboxes with JQuery  (0) 2014.01.27