Posted on: 4/24/2015 3:47:22 PM | Views : 619

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <script type="text/javascript"> function ValidationEvent() { var txtName = document.getElementById("txtName").value; var txtemail = document.getElementById("txtemail").value; var txtphone = document.getElementById("txtphone").value; var txtemailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/; if (txtName != '' && txtemail != '' && txtphone != '') { if (txtemail.match(txtemailReg)) { } else { alert("Invalid Email"); return false; } } else { alert("Please fill in all fields."); return false; } return true; } </script ...

Go to the complete details ...