function isAlphaNumeric(valueToTest)
{
var myRegxp = /^[\w ]+$/;
if(myRegxp.test(valueToTest) == 1)
{
return true;
}
else
{
return false;
}
}

to check alphanumeric character

Leave your comment