jQuery: The Write Less, Do More JavaScript Library

Plugins/Validation/Validator/resetForm

From jQuery JavaScript Library

Jump to: navigation, search

« 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:

Reset the form controlled by this validator.

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

NameType