phone number patter in html5

Solutions on MaxInterview for phone number patter in html5 by the best coders in the world

showing results for - "phone number patter in html5"
Mathilde
24 Feb 2019
1  <!-- html form tag -->
2  <form>
3    <label>Phone Number Format (xxxxxxxxx)</label>
4    <!-- html input type=tel for phone number which contain a pattern -->
5    <input type="tel"
6           name="phone_number"
7           id="phone_number"
8           pattern="^\d{10}$"
9           required="required"
10          />
11          
12    <!-- html input type=submit for submit a form --> 
13    <input type="submit" />
14    
15  </form>