Skip to content

Commit

Permalink
Group radio/checkboxes will respect ignored elements
Browse files Browse the repository at this point in the history
  • Loading branch information
bcardarella authored and jzaefferer committed Jul 15, 2010
1 parent 7d0d7f6 commit 339da6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.validate.js
Expand Up @@ -481,7 +481,7 @@ $.extend($.validator, {

// if radio/checkbox, validate first element in group instead
if (this.checkable(element)) {
element = this.findByName( element.name )[0];
element = this.findByName( element.name ).not(this.settings.ignore)[0];
}

var rules = $(element).rules();
Expand Down

0 comments on commit 339da6e

Please sign in to comment.