Email and Form validation using JS Example code
<!DOCTYPE html> <html> <head> <title> NEW YORK FOOD | NIGHTS</title> <link rel="stylesheet" type="text/css" href="css/style.css"> <link rel="ico" type="image/jpg" href="img/favicon.ico"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="js/jquery.validationEngine-en.js"></script> <script> function validateForm() { var x = document.forms["myForm"]["email"].value; var reg = /^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/ if (!reg.test(x)) { $("#demo").css("display","block"); } } </script> <style type="text/css"> #demo{ display:none; color:red; background: #ccc; } </style> </head> ...