reset javascript form code example
Example 1: javascript reset form
document.querySelector("form").reset();
Example 2: javascript clear form after dubmit
//Get form by Id
var form = document.getElementById("MusicForm");
form.target.reset();
document.querySelector("form").reset();
//Get form by Id
var form = document.getElementById("MusicForm");
form.target.reset();