What is the regular exprn to validate alphabets including space character
The code below gives validate names like ‘Anjana’
When i enter a name like ‘anjana menon’ its not validating…
var txtname=document.getElementById(“txt_name”).value;
var filter=/[1]+$/;
var test_bool = filter.test(txtname);
if(test_bool==false)
{
alert(‘Please Enter Only Alphabets in the Name Field’);
document.getElementById(“txt_name”).focus();
return false;
}
Pls help…:injured:
a-zA-Z ↩︎