Removing form fields after submit

Hi there

http://www.jasoncorbett.com.au/contact.php

How can I make my form disappear once the form has been completed and the success message pops up.

Thanks!

Jase

Give the form an ID. Make a script that removes the node of the ID or something like that when the form is submitted?
http://www.w3schools.com/dom/dom_nodes_remove.asp

x = document.getElementById(‘formID’);
x.parentNode.removeChild(x);

Haven’t tested it, but maybe this thing works out.

The success message appears with script disabled, so the decision is being made server side. Why not use the same condition to decide whether to render the form?