js from reset code example
Example 1: javascript reset form
document.querySelector("form").reset();
Example 2: reset function javascript
document.getElementById("myForm").reset();
document.querySelector("form").reset();
document.getElementById("myForm").reset();