clear form after submit code example
Example 1: form reset jquery
$('#form_id').trigger("reset");
Example 2: javascript clear form after dubmit
//Get form by Id
var form = document.getElementById("MusicForm");
form.target.reset();
$('#form_id').trigger("reset");
//Get form by Id
var form = document.getElementById("MusicForm");
form.target.reset();