I have used below code and it working fine please check below.
$(".emailValidation").change(function(){
$('body .emailError').remove();
var emailVal = this.value;
var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
if(filter.test(emailVal) === false)
{
$( ".emailValidation" ).after( "<div class='emailError'>You have added wrong email address.</div>" );
}
else
{
$('.emailError').remove();
}
});
But if user pass email@email.com.com
then this validation is not working.