From jQuery JavaScript Library
« Back to Plugins/Validation/Validator
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:| Name | Type |
Reset the form controlled by this validator.
var validator = $("#myform").validate();
validator.resetForm();