Is there a way for two or more ID\'s be required to be checked before doing something.
For instance:
If BOTH Checkbox 1 and Checkbox 2 are checked then th
$(document).ready(function() {
var check1 = $("#check1");
var check2 = $("#check2");
// this method decides what to do when a checkbox is clicked
var trigger_event = function() {
if (check1.attr("checked") && check2.attr("checked")) {
event1();
}
else if (check1.attr("checked") && !check2.attr("checked")) {
event2();
}
else if (!check1.attr("checked") && check2.attr("checked")) {
event3();
}
};
// append event
check1.click(function() {
trigger_event();
});
check2.click(function() {
trigger_event();
});
};