FormValidation v0.8.1 is released, supports Bootstrap 4 alpha 3

digits validator

Return true if the value contains only digits



Option HTML attribute Type Description
message data-fv-digits-message String The error message
When setting options via HTML attributes, remember to enable the validator by setting data-fv-digits="true".
The message option can be updated on the fly via the updateMessage() method

Related validators

The following validators might be useful to you: