title: ASP.NET client side validation on blur
body: <p>I have few textboxes and asp.net validation controls on a page. The validation fires when I click on &quot;Submit&quot; button. Is there anyway to fire the validation as soon as I leave the textbox? I would like to do the same validation for other 20+ fields in the form. However, only validating specific textbox when leaving it.</p>
  <pre><code>        &lt;asp:TextBox ID=&quot;txtclass&quot; runat=&quot;server&quot;&gt;&lt;/asp:TextBox&gt;
          &lt;asp:RangeValidator ID=&quot;rvclass&quot; 
             runat=&quot;server&quot; ControlToValidate=&quot;txtclass&quot; 
             ErrorMessage=&quot;Enter your class (6 - 12)&quot; MaximumValue=&quot;12&quot; 
             MinimumValue=&quot;6&quot; Type=&quot;Integer&quot;&gt;
          &lt;/asp:RangeValidator&gt;
          &lt;asp:Button ID=&quot;btnsubmit&quot; runat=&quot;server&quot; onclick=&quot;btnSubmit_Click&quot; Text=&quot;Submit&quot; /&gt;
  </code></pre>