Delete html element at submit
<p>I'm new with JavaScript. Can someone give me an example how to delete an empty form element upon submit?</p>

<pre><code>&lt;form action='...' method='post' id='mySubmitForm'&gt;
     &lt;input type='text' name='name'&gt;
     &lt;input type='text' name='email'&gt;
     &lt;input type='text' name='phoneNumber'&gt;
     &lt;input type='submit' value='Save'&gt;
&lt;/form&gt;
</code></pre>

<p>Is there a easy way to check with JavaScript if the form is empty and delete it before submission if so?</p>
