Created
May 24, 2017 18:37
-
-
Save stevetrask/351ddb47efa17c000866d9b6bb0c21bd to your computer and use it in GitHub Desktop.
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
if($('#partner-form').length > 0) { | |
validator = $('#partner-form').validate({ | |
errorPlacement: function(error, element) { | |
error.insertBefore(element.prev("label")); | |
}, | |
rules: { | |
first_name: { | |
required: true | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment