I want to 1)display an alert if ("#one") is checked and ("#two") isn't checked. Then display a different alert if both are checked. What I have does the first part right, then displays both alerts on the second part.
$("#one").click(function() {
if($(this).is(":checked") && $("#two").is(":not(:checked)")) {
alert("foo");
} else {
if($(this).is(":checked") && $("#two").is(":checked")) {
alert("foo foo");
}
}
});