I want to hide my form when I click on the submit button. My code is as follows:
its a block element, and you need to use none
none
document.getElementById("test").style.display="none"
hidden is used for visibility
hidden
visibility