Search
 
SCRIPT & CODE EXAMPLE
 

HTML

html input only 4 digits

<input type="text"  name="pincode" maxlength="4"  id="pin" pattern="^0[1-9]|[1-9]d$" required/>
Comment

input digits only

<input type="text" 
       onkeyup="this.value=this.value.replace(/[^d]/,'')">
Comment

PREVIOUS NEXT
Code Example
Html :: tailwind push footer always to bottom of screen 
Html :: html icon for rupee 
Html :: handlebars js cdn 
Html :: wave symbol 
Html :: body on start do function javascript 
Html :: textarea angular onfocus 
Html :: meta refresh 
Html :: input with dropdown 
Html :: share link to email 
Html :: radio buttons html 
Html :: bootstrap textarea width 
Html :: tailwind 
Html :: modal footer button center 
Html :: ocr 
Html :: how to limit characters in contenteditable div 
Html :: ion-datetime cancel text 
Html :: minmax length password 
Html :: What is a viewport meta tags 
Html :: how to stop button from affecting form submit in html 
Html :: How to write a empty character in HTML 
Html :: load content of html without reloading python django 
Html :: details summary html5 
Html :: display subtitles with audio html 
Html :: robots txt disallow all 
Html :: twig check variables type 
Html :: reading html file and writing response.write nodejs 
Html :: auto refresh 
Html :: bootstrap 5 color picker 
Html :: vue render html raw 
Html :: new line html 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =