Check if string contains only letters in javascript. So I tried this: if (/^[a-zA-Z]/.test(word)) { // code }. It doesn't accept this : " ".
確定! 回上一頁