Javascript reset function won't work after successful submission of a web form
<p>I am new to JavaScript. I am working in Visual Studio with ASP.NET and I have a simple form. I also have a JavaScript function to validate the form and a JavaScript function to reset the form. The validation and submission work fine. However, after submitting the form, I cannot get the JavaScript reset function to work. I have also tried using a regular HTML input button and it does not work. It works fine before a successful submision, but never after.  Any help will be greatly appreciated. </p>

<pre><code>function resetForm() {
      document.getElementById("accountForm").reset();
}

&lt;asp:Button ID="subBtn" runat="server" Text="Submit" OnClientClick="return validateForm()" onclick="subBtn_Click" /&gt;
&lt;asp:Button ID="rstBtn" runat="server" Text="Reset"  OnClientClick="resetForm()" oncClick="rstBtn_Click"/&gt;
</code></pre>
