Search
 
SCRIPT & CODE EXAMPLE
 

HTML

input validation for phone number

 <input oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(..*)./g, '$1');" class="form-control" id="phone" name="phone" type="text" placeholder="Phone"/>
Comment

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.
Comment

PREVIOUS NEXT
Code Example
Html :: show location on google map using latitude and longitude web html 
Html :: details summary html5 
Html :: easyui datagrid tabs 
Html :: open link in a new tab 
Html :: html video fullscreen 
Html :: html input checkbox unchecked 
Html :: HTML5 Option Groups 
Html :: how to make a link in html that opens in a new tab 
Html :: How can I include python script in a HTML file? 
Html :: html link to new tab 
Html :: bootstrap5 lineheight 
Html :: tailwind css checkbox 
Html :: laravel blade cheched 
Html :: html check-box 
Html :: tailwind container 
Html :: disabled input fields vue 
Html :: angular 10 email id validation 
Html :: integer input html 
Html :: html video play pause 
Html :: new line html 
Html :: button disabled ionic 
Html :: access to image at from origin 
Html :: display html input datetime-local 
Html :: html table colspan 
Html :: how to create comments in html5 
Html :: input type text click button 
Html :: how to get text in middle of page html 
Html :: html table two headers 
Html :: block elements 
Html :: v-select key 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =