I have an input type=\"text\" for names in my HTML code. I need to make sure that it is a string with letters from \'a\' to \'z\' and \'A\' to \'Z\' only, along
input type=\"text\"
check out regular expressions and patterns.
function f1() { var x=document.f.name.value; return /^[A-z ]+$/.test(x); }