Answers for "input number type accept only 10 digits"

-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

input only accept numbers

<label for="salary">Enter your salary:</label>
<input type="text" id="salary" name="salary"
    oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(..*)./g, '$1');" />
Posted by: Guest on December-10-2021

Code answers related to "input number type accept only 10 digits"

Browse Popular Code Answers by Language