function email_check( email ) {
var regex=/([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
return (email != '' && email != 'undefined' && regex.test(email));
}
$("input[type=email]").blur(function(){
var email = $(this).val();
if( email == '' || email == 'undefined') return;
if(! email_check(email) ) {
$(".result-email").text('이메일 형식으로 적어주세요');
$(this).focus();
return false;
}else {
$(".result-email").text('');
}
});
<input type="email" placeholder="이메일" name="mail" id="mail" maxlength="30">
<div id="error_mail" class="result-email result-check"></div>
External resources loaded into this fiddle: