title: Jquery validation plugin | resetForm is not working
body: <p>I am trying to clear all error messages as well error highlighting when user click on the <code>clear form</code> button, below are actual requirements</p>
  
  <ol>
  <li>Validate form using Jquery validation</li>
  <li>When user click on a field error message should be cleared (per field)</li>
  <li>On clicking reset button, every error should be cleared</li>
  </ol>
  
  <p>here is my code</p>
  
  <pre><code>$( document ).ready(function(){
     var validator = $("#register_form").validate({
     validator.resetForm();
     focusCleanup: true,
   rules: {
    // custom rules
  },
  messages: {
  // custom messages
      }
    });
  </code></pre>
  
  <p>For me, first 2 things are working, but when I am trying to clear complete form, I am not able to do this.this is how I am trying to clear it</p>
  
  <pre><code>function clearInputForm(){
    alert("");
    var validator1 = $( "#register_form" ).validate();
    validator1.resetForm();
     $("#register_form")[0].reset();
  }
  </code></pre>
  
  <p>But nothing is happening , though with  <code>$("#register_form")[0].reset();</code>, form fields are getting clear, but error messages are not getting cleared.</p>