Answers for "Html pattern phone number"

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
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 patter in html5

<!-- html form tag -->
  <form>
    <label>Phone Number Format (xxxxxxxxx)</label>
    <!-- html input type=tel for phone number which contain a pattern -->
    <input type="tel"
           name="phone_number"
           id="phone_number"
           pattern="^\d{10}$"
           required="required"
          />
          
    <!-- html input type=submit for submit a form --> 
    <input type="submit" />
    
  </form>
Posted by: Guest on September-06-2021

Code answers related to "Html pattern phone number"

Browse Popular Code Answers by Language