how to reset form in js code example
Example 1: reset form function javascript
document.getElementById("form").reset();
Example 2: javascript reset form
document.querySelector("form").reset();
document.getElementById("form").reset();
document.querySelector("form").reset();