Login or sign up Lost password?
Login or sign up
You can write a Java Script form validation script to check whether the required field(s) in the HTML form contains only letters. To get a string contains only letters (both uppercase or lowercase) we use a regular expression (/^[A-Za-z] $/) which allows only letters.