Answers for "digit input with only one positive digit number html"

-1

html input only 4 digits

<input type="text"  name="pincode" maxlength="4"  id="pin" pattern="^0[1-9]|[1-9]\d$" required/>
Posted by: Guest on June-04-2021
0

make only one digit input box

<input type="text" maxlength="1" oninput="this.value=this.value.replace(/[^0-9]/g,'');" />
Posted by: Guest on February-17-2021

Code answers related to "digit input with only one positive digit number html"

Browse Popular Code Answers by Language