v0.5.3 is released on 2014.11.05!
Options
Option | HTML attribute | Type | Description |
---|---|---|---|
ipv4 |
data-bv-ip-ipv4 |
Boolean | Enable IPv4 validator, default to true |
ipv6 |
data-bv-ip-ipv6 |
Boolean | Enable IPv6 validator, default to true |
message |
data-bv-ip-message |
String | The error message |
When setting options via HTML attributes, remember to enable the validator by setting data-bv-ip="true".
Related validators
The following validators might be useful to you: