var jsReset = function() {

$('#dataForm').each(function(){

this.reset();

});

};


<form name="dataForm" id="dataForm" method="post">

<input type="button" value="취소" onclick="jsReset();" />

</form>



화면이 Load 되면서 셋팅되어있던 form 값데로 되돌려줌.

+ Recent posts