Bootstrap5 Plugin
Applies Bootstrap 5 validation classes (is-valid / is-invalid) to form fields based on their validation state.
Options
| Option | Type | Default | Description |
|---|---|---|---|
validClass | string | "is-valid" | CSS class applied when the field is valid |
invalidClass | string | "is-invalid" | CSS class applied when the field is invalid |
Playground
Notes
- Classes are added directly to the
<input>element (not the wrapper<div>). - The
Messageplugin is recommended alongsideBootstrap5to display error text. - On
uninstall()(e.g.,fv.destroy()), all classes are removed.