I want to hide my form when I click on the submit button. My code is as follows:
Replace hidden with none. See MDN reference.
hidden
none