Skip to content

Instantly share code, notes, and snippets.

@patelc75
Created April 25, 2012 00:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patelc75/2484796 to your computer and use it in GitHub Desktop.
Save patelc75/2484796 to your computer and use it in GitHub Desktop.
jQuery.validator.addMethod('state_filled', function(value) {
return $("#person_address_state").val() != "";
}, jQuery.format('State cannot be blank'));
undefined
$.validator.addMethod('state_filled', function(value) {
return $("#person_address_state").val() != "";
}, 'State cannot be blank');
undefined
@patelc75
Copy link
Author

Getting undefined above. Any ideas?

Similar to wire's vendor/assets/javascripts/jquery/jquery.validate.additionalMethods.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment