Is there a way to validate this code I have below? I mean I have a save button too where when I click save and none of the checkboxes are checked, I would like it to validate, but not validate where it throws an alert.
var chkbox= $('#divListBox').find(':checked')
.map(function() {
return $(this).val();
}).get();
Do you mean, you do not want to raise an annoying popup when nothing has been selected? Maybe something like this: