jQuery.validator.setDefaults()

jQuery.validator.setDefaults( options )

Description: Modify default settings for validation.

Accepts everything that validate() accepts.

Example:

Sets the debug setting for all validation calls.

1
2
3
jQuery.validator.setDefaults({
debug: true
});