strNumber = form
if (strNumber ==
{
alert(
form
return (false);
}
if (strNumber
{
alert(
form
return (false);
}
for (index=
{
check = strNumber
if (!(digit(check) || alpha(check)))
{
alert(
form
return false;
}
}
//檢查輸入項是否為數字
function digit(check)
{
return ((
}
//檢查輸入項是否為字母
function alpha(check)
{
return (((
}
//
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/19403.html