validate.js icon indicating copy to clipboard operation
validate.js copied to clipboard

The check box group does't work.

Open ghost opened this issue 9 years ago • 5 comments

type="checkbox" name="animal[]" value="Cat" type="checkbox" name="animal[]" value="Dog" type="checkbox" name="animal[]" value="Bird"

name: 'animal[]', rules: 'required'

or

name: 'animal', rules: 'required'

There aren't working. How to resolve?

ghost avatar Mar 02 '15 02:03 ghost

I am also experiencing the same issue as @leolee10 ..I have tried setting checkboxes names to "interest[]" as well as "interest" but they are ignored when the form is validated.

also should note that i'm using labelauty on my checkboxes as well.

thanks

wdeer avatar Mar 26 '15 15:03 wdeer

Could you please post a jsbin demonstrating the issue.

rickharrison avatar Mar 27 '15 10:03 rickharrison

I tested this isssue , but the result is right. @leolee10 @wdeer Please try again or post a jsfiddle.

lucien925 avatar Mar 27 '16 03:03 lucien925

I am also experiencing the same issue. QAQ

@summerGreenTea

WonderLand33 avatar Jul 03 '17 08:07 WonderLand33

@summerGreenTea @leolee10

The problem has been fixed in the new version.

problem : TIM截图20170703170213.png

WonderLand33 avatar Jul 03 '17 09:07 WonderLand33