$(document).ready(function() {
$('#bundlesubmit').click(function() {
if ($("#three").is(':checked')) {
$("#bundleDropDown1").toggle();
alert ('hey this is the three only one');
}
if ($("#two").is(':checked')) {
$("#bundleDropDown2").toggle();
alert ('hey this is the second one');
}
if ($("#two").is(':checked') == true && $("#three").is(':checked') == true) {
$("#bundleDropDown").toggle();
alert ('hey this is the two options');
}
});
});
So I have searched all over the internet for the answer but couldn't found anything! The code is working but when a person selects two checkboxes it does that function and does the function of a single checkbox.
So like if I select #TWO and #THREE it does all the functions. How do I tell if both are selected only execute that one function.