Validation
It provides valuable, actionable feedback to your users with HTML5 form validation.
jQuery Validation documentationHow to use?
Copy-paste the following <script>
near the end of your pages under JS Implementing Plugins to enable it.
Copy-paste the following <script>
near the end of your pages under JS Front to enable it.
Copy-paste the init function under JS Plugins Init., before the closing </body>
tag, to enable it.
Methods
Options can be passed via data attributes or JavaScript. For data attributes, append the option name to data-hs-validation-options='{}'
. For more detailed or missing attributes/functions, see the official jQuery Validation documentation page.
Parameters | Description | Default value |
---|---|---|
|
Use this element type to create error messages and to look for existing error messages | 'div' |
|
Use this class to create error labels, to look for existing error labels and to add it to invalid elements | 'invalid-feedback' |