Answers for "how to allow only digits number in text form field in"

0

input digits only

<input type="text" 
       onkeyup="this.value=this.value.replace(/[^\d]/,'')">
Posted by: Guest on October-04-2021

Code answers related to "how to allow only digits number in text form field in"

Browse Popular Code Answers by Language