I have three checkboxes and i need to know what combination of checkboxes are checked, i was thinking of doing something like this and adding else if for every other possible combination.
$("#cbOne, #cbTwo, #cbThree").click(function () {
if ($("#cbOne").is(":checked") == true && $("#cbTwo").is(":checked") == false && $("#cbThree").is(":checked") == false) {
// do something;
});
Unfortunately i can't get it to work, any tips?
Aucun commentaire:
Enregistrer un commentaire