var letters = /^[a-zA-Z]+$/; if(inputString.match(letters)) { alert('input contains letters only'); }else { alert('invalid input'); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)