By using jquery
By using Javascript
$('#formID')[0].reset();
By using Javascript
document.getElementById("myForm").reset();
The reset() method resets the values of all elements in a form (same as clicking the Reset button).
No comments:
Post a Comment