I want to call a jquery function to manually remove errors from a single field and reset the error markup. Is there a function that does this that would be similar to the resetForm function?
valid()Returns: Boolean Description: Checks whether the selected form is valid or whether all selected elements are valid.
You want the resetForm() method: var validator = $("#myform"). validate( ... ... ); $(". cancel").
validator. addMethod( name, method [, message ] ) Description: Add a custom validation method. It must consist of a name (must be a legal javascript identifier), a javascript based function and a default string message.
You can do the following to validate a single field:
$('#your_field').valid();
Maybe it will help someone :-)
Thanks!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With