Hi,
I want to check e-mail or phone number is entered on my online form so I need a javascript code that can do this!.Thanks
Printable View
Hi,
I want to check e-mail or phone number is entered on my online form so I need a javascript code that can do this!.Thanks
thanks but your codes seems very complex for me :(
my e-mail check code is:
<!-- Begin
function checkEmail(myForm) {
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(myForm.Email.value)){
return (true)
}
alert("please enter your e-mail adress !")
return (false)
}
// End -->
and I need to add phone number check to this code,can you help me?