Answers for "angular input only digits"

0

textbox should accept only numbers till 10 digit using angular

<input type="text" name="country_code" title="Error Message" pattern="[1-9]{1}[0-9]{9}">
Posted by: Guest on December-07-2020
0

input digits only

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

Browse Popular Code Answers by Language