Use the reset function, which is available on the form element.
var form = document.getElementById("myForm");
form.reset();
Use the reset function, which is available on the form element.
var form = document.getElementById("myForm");
form.reset();