I\'m using the jQuery code below to validate a form. Now it all works great but I would like for the checkbox validation to use the .validator
rather than its c
Here is some code that will work with the JQuery Validation Plugin. I'm not sure if this will work with what you're using because I've never heard of it.
$("#request-form").validate({
rules: {
checkbox: {
required: 'input[type="checkbox"]:checked',
minlength: $('input[type="checkbox"]').length()
}
},
messages: {
checkbox: "Please check at least one.",
}
});
HTH