Validator.destroy()
Validator.destroy()
Destroys this instance of validator freeing up resources and unregistering events.
Description
This is only useful, when you need to clean up after the validator in a Single Page Application.
Usage
Validator.destroy()
This signature does not accept any arguments.
Examples
Destroying an instance of validator.
/*
* On SPA page start.
*/
var validator = $( "#myform" ).validate();
/*
* Just before SPA page's navigation away.
*/
validator.destroy();
/*
* After this point the #myForm form is back to its original boring state.
*/