Skip to content

Instantly share code, notes, and snippets.

@emiaj
Created January 15, 2013 01:44
Show Gist options
  • Save emiaj/4535321 to your computer and use it in GitHub Desktop.
Save emiaj/4535321 to your computer and use it in GitHub Desktop.
(function ($) {
$.fubuvalidation.Processor.findElementsWith(function(context) {
var element = $("#" + context.key, context.form);
if (element.size() == 0) {
return;
}
context.element = element;
});
$.fubuvalidation.Processor.findElementsWith(function(context) {
var element = $("[name=" + context.key + "]", context.form);
if (element.size() == 0) {
return;
}
context.element = element;
});
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment