Last active
December 26, 2015 04:09
-
-
Save dviramontes/7091197 to your computer and use it in GitHub Desktop.
email validation with jquery plugin
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
// validate email address | |
$("#ss-form").validate({ | |
// validate rule | |
rules : { | |
email : { | |
required: true, | |
email: true | |
} | |
}, | |
// msg to be displayed on input error | |
messages : { | |
email: "Please enter a valid email address" | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment