so I have this
<div id=first class=1 style=display:>
<form>
<input type=submit>
</form>
</div>
<div id=second class=2 style=display:none>
test
</div>
I want to switch the display option after the form is submitted (the button is pushed). I want the script to become like this after clicking on the submit button
<div id=first class=1 style=display:none>
<form>
<input type=submit>
</form>
</div>
<div id=second class=2 style=display:>
test
</div>