Quantcast
Channel: Active questions tagged email - Stack Overflow
Viewing all articles
Browse latest Browse all 29929

Email not validating completely with jQuery validation

$
0
0

Email address not validating completely for example. i have a email field and i am validating it from jQuery validation plugin. when i put some like "abbcss" it says email is not valid. then i put "abbcss@g" the error is gone and as you can see the email is still not valid. for better understanding i put a fiddle here.

$(document).ready(function(e) {
    $('#email').keyup(function(){
			$('#checkform').validate();
	 });
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script><link href="//getbootstrap.com/dist/css/bootstrap.min.css" rel="stylesheet"/><script src="//cdn.jsdelivr.net/jquery.validation/1.15.0/jquery.validate.js"></script><form id="checkform"><input id="email" type="email" name="email"></form><hr><p>Try to put first "abcc" and click outside field </p><p>then try to put "abcc@gmail" and click outside field </p><p>it will consider it a valid email but actually it is not.</p>

any help regarding this issue will be appriciate.


Viewing all articles
Browse latest Browse all 29929


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>