contact text box accept only till 10 digit in html
snippet in html

textbox should accept only numbers till 10 digit using angular

user9556

<input type="text" name="country_code" title="Error Message" pattern="[1-9]{1}[0-9]{9}"> 

contact text box accept only till 10 digit in html

user4714

<input type="text" maxlength="10" pattern="\d{10}" title="Please enter exactly 10 digits" />