« Back to Plugins/Validation/Validator

[edit]

resetForm( )

Resets the controlled form.
Resets input fields to their original value (requires form plugin), removes classes indicating invalid elements and hides error messages.


Examples:

Reset the form controlled by this validator.

var validator = $("#myform").validate();
validator.resetForm();

NameType