title: jQuery.validate event of before validation
body: <p>I have following code</p>
  
  <pre><code>$("#Form").validate({
  
      errorPlacement: function(error, element) {
          element.addClass('errorField');
          element.after(error);
      },
      rules: {
          ...
      }
  });
  </code></pre>
  
  <p>The <code>errorPlacement</code> function is setting a css <code>class</code> <code>errorField</code> to the element when it fails the described rules and every time before validation I want to remove this class <code>errorField</code>.</p>
  
  <pre><code>element.removeClass('errorField');
  </code></pre>
  
  <p>So my question, <strong>is there any event in jquery.validate that fires before the validation took place?</strong> </p>
  
  <p>so if that <code>element</code> is hosting this class <code>errorField</code>, the above code will remove the class from this element and will re-validate the field and may apply this class again if the field fails the rules again.</p>
  
  <p>This may also done in any event that fires <strong>after the validation</strong> so if the element passes the rule I will remove the class <code>errorField</code>.</p>
  
  <p><strong>Note:</strong> <code>errorField</code> is a css class that will highlight the field to notify the user about the error</p>