digits validator

Check if the input contains only digits

Options

Using with form field

The HTML attributes are used to set the validator options via the Declarative plugin

Name HTML attribute Type Description
message data-fv-digits___message String The error message

Using with ES6 module

Related validators

The following validators might be useful to you.