rickharrison / validate.js

Lightweight JavaScript form validation library inspired by CodeIgniter.
http://rickharrison.github.io/validate.js
Other
2.56k stars 406 forks source link

Loop through radio/checkbox arrays to properly add an ID to each erro… #204

Open cliffordgurney opened 7 years ago

cliffordgurney commented 7 years ago

I noticed in my usage that lists of radio or checkboxes had ID's set as undefined in the validation array. This loops through these lists and adds this ID into the validation and treats each list as their own error object.