make an input field take only letters code example
Example: html input only letters
<!--To stop input from accepting numbers-->
<input onkeypress="return /[a-z]/i.test(event.key)" >
<!--To stop input from accepting numbers-->
<input onkeypress="return /[a-z]/i.test(event.key)" >