FORM 객체 초기화 하기

by 조쉬 posted Sep 21, 2016
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄
다음코드는 폼 객채의 하위 객채들에 대해서 초기화를 진행한다. 폼 객체의 Reset() 함수와 동일한 기능을 수행한다. 

$('#폼객체ID').each(function(){
          this.reset();
});


예)
<form id="frmTest">
<input type="text" id="title" name="title">
</form>

$('frmTest').each(function(){
this.reset();
});

Articles

1 2 3 4 5 6 7 8 9