If there are any changes tell me... It should accept general mail ids "xyz@adaf@fa.com" should not accept "xyzadaf@fa.com","xyz@ad.co.in" should accept
function checkEmail(){
var emailFormat = /^[a-zA-Z0-9._-]+[@]{1}[.]{1}[a-z]{2,3}[.]*[a-z]{0,3}$/;
var email = document.getElementById("email").value;
var emailStatus = emailFormat.exec(email);
if(emailStatus == "true"){
alert("success");
}
else(emailStatus == "false"){
alert("Try again");
}
}