Answers for "phone number in html validation"

1

html phone number validation pattern

<input type="text" name="Phone Number" pattern="[7-9]{1}[0-9]{9}" 
       title="Phone number with 7-9 and remaing 9 digit with 0-9">
Posted by: Guest on September-23-2020
0

phone number validation html

How about this? /(7|8|9)\d{9}/

It starts by either looking for 7 or 8 or 9, and then followed by 9 digits.
Posted by: Guest on March-18-2021

Code answers related to "phone number in html validation"

Browse Popular Code Answers by Language