, another cool thing from @nghuuphuoc!

phone validator

Validate a phone number


Improve it on Github


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
When setting options via HTML attributes, remember to enable the validator by setting data-bv-phone="true".

The supported countries are:

Country Code
United States US
Brazil BR
China CN
Czech Republic CZ
Denmark DK
France FR
Morocco MA
Pakistan PK
Romania RO
Russia RU
Slovakia SK
Spain ES
Thailand TH
United Kingdom GB
Venezuela VE

Related validators

The following validators might be useful to you: