title: Razor page form submission disable submit button but unable to enable it if form has client validation
body: <p>I'm using razor pages, i have a simple form submission</p>
  <pre><code> &lt;form method=&quot;post&quot; onsubmit=&quot;btnSave.disabled = true; btnSave.value = 'Please Wait..'&quot;&gt;
       &lt;input id=&quot;btnSave&quot; type=&quot;submit&quot; value=&quot;Save&quot;  /&gt; 
   &lt;/form&gt;
  </code></pre>
  <p>This works fine for my form submission, but i have some dropdown lists i am validating with in the form using Razor page validation as such</p>
  <pre><code>@section Scripts {
      @{await Html.RenderPartialAsync(&quot;_ValidationScriptsPartial&quot;);}
  
  }
  </code></pre>
  <p>Which is the _ValidationScriptsPartial.cshtml content</p>
  <pre><code>&lt;script src=&quot;~/lib/jquery-validation/dist/jquery.validate.min.js&quot;&gt;&lt;/script&gt;
  &lt;script src=&quot;~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js&quot;&gt;&lt;/script&gt;
  </code></pre>
  <p>So if i hit a validation error on one of my dropdown lists the submit button stays diabled and says &quot;Please Wait..&quot; , i can't figure how to if a validation fails for the _ValidationScriptsPartial how to re-enable my button and have it say &quot;Save&quot; again instead of &quot;Please Wait..&quot; so the user can resubmit ?</p>