Here is the function to do so.
//check if a character is alphabet or not
function isAlpha(aChar)
{
myCharCode = aChar.charCodeAt(0);
if(((myCharCode > 64) && (myCharCode < 91)) ||
((myCharCode > 96) && (myCharCode < 123)))
{
return true;
}
return false;
}
//check if a character is alphabet or not
function isAlpha(aChar)
{
myCharCode = aChar.charCodeAt(0);
if(((myCharCode > 64) && (myCharCode < 91)) ||
((myCharCode > 96) && (myCharCode < 123)))
{
return true;
}
return false;
}