How to check if a string contains [a-zA-Z] characters only?
[a-zA-Z]
Example:
var str = \'123z56\';
You can use regex:
/[a-z]/i.test(str);
The i makes the regex case-insensitive. You could also do:
i
/[a-z]/.test(str.toLowerCase());