Answers for "mobile number validation in html"

1

how to validate mobile number in html form

<div>
  <label for="phone">Enter your phone number:</label>
<input type="tel" id="phone" name="phone"  pattern="+94[7-9]{2}-[0-9]{3}-[0-9]{4}" value="+94">
 </div>
Posted by: Guest on November-28-2020
0

add html validation to mobile number

<input type="text" pattern="[789][0-9]{9}">
Posted by: Guest on April-03-2021
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 "mobile number validation in html"

Browse Popular Code Answers by Language