How to clear Jquery validation error messages?
<p>I am using jquery validation plugin for client side validation.</p>

<p>but i want to clear error mesages on my form clear button</p>

<p>editUser() is called on click of Edit User button.</p>

<pre><code>clear button having separated function clearUser(){
// Need to clear previous errors here
}


function editUser(){    
    var validator = $("#editUserForm").validate({
            rules: {                            
                userName: "required"
        }, 
        errorElement: "span" ,               
        messages: {
          userName: errorMessages.E2
        }
      });

     if(validator.form()){ 
        // form submition code

    }
}
</code></pre>

<p>Thanks</p>
