deregisterPlugin() method

Deregister a plugin
Deregister a plugin which is registered earlier by registerPlugin() method.
deregisterPlugin(name: String): Core
(* denotes a required parameter)
ParameterTypeDescription
name*StringThe name of plugin
Using the global script in the browser
const fv = FormValidation.formValidation(
document.getElementById('demoForm'),
{
...
}
);
fv.deregisterPlugin(...);
Using the ES6 module
import { formValidation } from '/path/to/@form-validation/cjs/bundle/popular';
const fv = formValidation(
document.getElementById('demoForm'),
{
...
}
);
fv.deregisterPlugin(...);
Using the npm package
import { formValidation } from '@form-validation/bundle/popular';
const fv = formValidation(
document.getElementById('demoForm'),
{
...
}
);
fv.deregisterPlugin(...);