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 :: <figure html 
Html :: salesforce aura input checkbox 
Html :: radio buttons in bootstrap 
Html :: link that scrolls down the page 
Html :: scrape beautifulsoup python html attribute value 
Html :: how to create js code 
Html :: html input checkbox checked 
Html :: two buttons in same form 
Html :: laravel datatables edit column html 
Html :: Hyperlink to text simple html a tag 
Html :: how to choose your html website favicon 
Html :: aria list 
Html :: offline p5.js html 
Html :: pdf download button 
Html :: div class link 
Html :: html flag icons 
Html :: html acesskey 
Html :: vue paragraph not showing when class applied to it 
Html :: click button to go to sub pag on html 
Html :: Links do not have a discernible name 
Html :: html platform 
Html :: html card 
Html :: email verification template html 
Html :: how to pass variables from a html form python flask 
Html :: yaml multiline string 
Html :: h1 alert 
Html :: dynamic html table python 
Html :: date tag html 
Html :: how to add href of messaGing IN ANCHOR TAG 
Html :: navbar in rows in bootstrap 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =