Check if the value is the same as one of particular field
* — Required option
|Option ||HTML attribute ||Type ||Description |
|String ||The name of field that will be used to compare with current one |
|String ||The error message |
When setting options via HTML attributes, remember to enable the validator by setting data-fv-identical="true".
From v0.6.0, you don't need to set identical validator for all fields which you want them to be identical to each other. For example, instead of using identical validator for both fields as following
just set it to one of fields:
The plugin then will update the message, icon, status of fields properly when you change value any fields.
The following form requires the password and confirmation one to be the same using
The following validators might be useful to you: