To achieve this, it is important that the plugin is actually deployed on websites around the world, so a lot of focus is spent on making it easy for developers – that's you – to use the plugin.The plugin can never replace serverside validation and doesn't intend to do so.The priorities are as follows: A custom message (passed by plugin options), the element's title, the default message.When using data attributes, you can set a generic message for all rules, or specific messages per rule: ).Optionally: Each input can have a label associated with it, where the 'for' attribute of the label refers to the 'id' attribute of the input.It's also a common practice to have 'id' and 'name' attributes with the same value, although keep in mind that since this plugin does not use the 'id' attribute, this is not mandatory.That way the user can try to fill out elements of the form at the end, without being forced to focus them again and again.
above the form (option ) can also be nested inside the error container.
You can specify an element input to contain a valid email address, or nothing at all. A validation rule applies one or more validation methods to an input element.
You can specify validation rules via metadata or via plugin settings (option ).
A 'name' attribute must also be unique to the form, as this is how the plugin keeps track of all input elements.
However, each group of radio or checkbox elements will share the same 'name' since the value of this grouping represents a single piece of the form data.