make alphabet mandatory in input field 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)" >