Validate Plugin - Checkboxes won't validate after update to v1.13.1
Hi Folks,
I am validating a group of checkboxes - and it works in jquery.validate.js v1.13.0 - but when I updated to v1.13.1, the checkboxes no longer validate. Any help would be appreciated
Here is my js ...
- $('#reg').validate({
- rules: {
- 'titlechoices[]': {required: true, minlength: 1},
- },
-
- messages: { 'titlechoices[]': { minlength: 'Please select at least {0} options' } },
-
- errorPlacement: function (error, element) {
- if(element.attr("name") == "titlechoices[]"){
- error.appendTo('.TitleError');
- } else {
- error.insertAfter(element);
- }
- }
- });
And the relevant html...
- <fieldset>
- <input name="titlechoices[]" type="checkbox" class="check_txtbx" value="BA"> BA
- <input name="titlechoices[]" type="checkbox" class="check_txtbx" value="BS"> BS
- <input name="titlechoices[]" type="checkbox" class="check_txtbx" value="CNM"> CNM
- <input name="titlechoices[]" type="checkbox" class="check_txtbx" value="CRNA"> CRNA
- </fieldset>