I need to validate this email using JS, I need to check for the @sign and a period. This is what I have now, but if I run all my code it doesn't not validate the @ sign.
if(email.value == "" || !isNaN(email.value) ) {
var re = /^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i;
//something is wrong.
isValid = false;
txtFeedback.innerHTML += "<p>Please enter a valid email address.</p>";
email.nextElementSibling.innerHTML = "Please enter a email address.";
}