function fn_validateNumeric(thi,
e)
{
if (window.event) keycode = window.event.keyCode;
else if (e) keycode = e.which;
else return true;
if (((keycode>=65) && (keycode<=90))||((keycode>=97) && (keycode<=122)))
{
return true;
}
else
{
return false;
}
}
You can use regular expressions to do this
In your case the regex will be [a-zA-Z]+
Thanks