Validate a phone number by a country code.
| Option | HTML attribute | Type | Description |
|---|---|---|---|
country* |
data-bv-phone-country |
String | An ISO-3166 country code. It's dynamic option |
message |
data-bv-phone-message |
String | The error message |
The supported countries are:
| Country | Code |
|---|---|
| United States | US |
| Brazil | BR |
| France | FR |
| Morocco | MA |
| Pakistan | PK |
| Spain | ES |
| United Kingdom | GB |
The following validators might be useful to you: