HTML5 phone number validation with pattern

后端 未结 5 419
醉酒成梦
醉酒成梦 2020-11-29 21:17

I\'m using HTML5 form validation to validate phone numbers from India.

Phone numbers from India are 10 digits long, and start with 7, 8, or 9.

For example:

5条回答
  •  自闭症患者
    2020-11-29 21:35

    This code will accept all country code with + sign

    
    

    Some countries allow a single "0" character instead of "+" and others a double "0" character instead of the "+". Neither are standard.

提交回复
热议问题