Created
February 13, 2013 21:49
-
-
Save nelsonJM/4948654 to your computer and use it in GitHub Desktop.
jQuery: Validate code
This file contains hidden or 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
| <script src="javascripts/jquery-validation/dist/jquery.validate.js"></script> | |
| <script> | |
| // jQuery validate plugin | |
| $(function(){ | |
| $("#quote-form").validate({ | |
| rules: { | |
| name: "required", | |
| email: { | |
| required: true, | |
| email: true | |
| } | |
| } | |
| }); | |
| }); | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment