title: How to check if .Net Validation is True before calling Click event
body: <p>I'm using .Net validation to validate my form. The issue is when I click on Submit, it doesn't check if the form is validated or not. Even if the fields are blanks, it fires the alert. I want the alert to fire only after the form is validated. Thank you.</p>
  
  <pre><code>&lt;asp:ValidationSummary ID="ValidationSummary1" runat="server" CssClass="error-box" /&gt;
  
  &lt;asp:Label ID="empLast4Lbl" runat="server" Text="Last 4 digits of SSN#"&gt;Last 4 digits of SSN&lt;/asp:Label&gt;
  &lt;asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="empLast4Txt"
                      ErrorMessage="Last 4 digits of SSN is required." ForeColor="Red" CssClass="float-none"&gt;*&lt;/asp:RequiredFieldValidator&gt;
  &lt;asp:TextBox ID="empLast4Txt" runat="server"&gt;&lt;/asp:TextBox&gt;
  
  &lt;asp:Label ID="empDobLbl" runat="server" Text="Label"&gt;Date of Birth&lt;/asp:Label&gt;
  &lt;asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="empDobTxt"
                      ErrorMessage="Date of Birth is required." ForeColor="Red" CssClass="float-none"&gt;*&lt;/asp:RequiredFieldValidator&gt;
  &lt;asp:TextBox ID="empDobTxt" runat="server"&gt;&lt;/asp:TextBox&gt;
  
  &lt;asp:Button ID="submitEmp" runat="server" Text="Submit" Class="ap-webmethod" /&gt;
  </code></pre>
  
  <p>// jQuery</p>
  
  <pre><code>$(".ap-webmethod").click(function () {
  
                  alert("Fired");
  
          });
  </code></pre>