posabsolute/jQuery-Validation-Engine — Issue #271: minCheckbox rule - issue with name attribute
Author: jjwdesign
Created: 2012-02-06 21:53:25+00:00
State: open

First, great library. It's a much needed library. I appreciate all the work that has gone into this library.

I'm seeing some issues with the minCheckbox rule. This rule only works if all of the Input Checkbox fields have the same name attribute. If the checkboxes are setup with different name attributes, as is very common with most forms, the validation is applied to each box individually. The validation messages will show for each field, rather than the group (count) as a whole.

var groupSize = form.find("input[name='" + groupname + "']:checked").size();

Unfortunately, I'm working with several libraries, one which requires me to use different names for each of my checkboxes. Is there a way to search for the group of checkboxes based on a regular expression?

Thanks, Jeff Walters