I have this script to validate my form but I would only want numbers and special charactors on this Phone field.
On the Name field I would want letters and and special characters incase a person's name has Apostrophes in it.
Anyone can help me?
function gosubmit()
{
if(document.myform.firstname.value=="")
{
alert("Please Enter First Name.");
document.myform.firstname.focus();
return false;
}
if(document.myform.emergencyPh.value=="")
{
alert("Please Enter Your Emergency Contact's Phone #.");
document.myform.emergencyPh.focus();
return false;
}
}
Thanks
Probably easiest way to find information on that would be to use Google for searches like:
javascript phone number checker
and
javascript first last name checker
Just in the 30 sec. for me to type those up there were plenty of examples...