clear form data after submit using event code example
Example 1: javascript prevent form submit
<form name="foo" onsubmit="return false">
Example 2: javascript clear form after dubmit
//Get form by Id
var form = document.getElementById("MusicForm");
form.target.reset();