Created
August 16, 2016 09:25
-
-
Save maximzasorin/f5a7664bec5119e9fa82a024ffe2a4fc to your computer and use it in GitHub Desktop.
Method for jQuery Validate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.validator.addMethod('emailstrict', function(value, element, param) { | |
return /^[a-zA-Z0-9_\.\-+]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9]{2,4}$/.test(value); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment