Skip to content

Instantly share code, notes, and snippets.

@stevetrask
Created May 24, 2017 18:37
Show Gist options
  • Save stevetrask/351ddb47efa17c000866d9b6bb0c21bd to your computer and use it in GitHub Desktop.
Save stevetrask/351ddb47efa17c000866d9b6bb0c21bd to your computer and use it in GitHub Desktop.
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