Check if string contains any letter (Javascript/jquery)
You have to use Regular Expression to check that :- var regExp = /[a-zA-Z]/g; var testString = “john”; if(regExp.test(testString)){ /* do something if letters are found in your string */ } else { /* do something if letters are not found in your string */ }