can anyone tell methods of form validation other than regex in javascript also can anyone suggest any alternate methods without Regex for this following code?
function AllowAlphabet(){
if (!frm.alphabet.value.match(/^[a-zA-Z]+$/) && frm.alphabet.value !="")
{
frm.alphabet.value="";
alert("Please Enter only alphabets");
}
if(frm.alphabet.value.length > 5)
alert("max length exceeded");