Answers for "allow only letters in input javascript"

3

how to check if a string has only alphabets in javascript

if (!/[^a-zA-Z]/.test(word))
Posted by: Guest on June-11-2020
0

html input only letters

<!--To stop input from accepting numbers-->
<input onkeypress="return /[a-z]/i.test(event.key)" >
Posted by: Guest on December-01-2020

Code answers related to "allow only letters in input javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language