I want to hide my form when I click on the submit button. My code is as follows:
this should be it try it.
document.getElementById("test").style.display="none";