JSFiddle - React, Tailwind, and code Playground
HTML
<form>
<input id="one" type="checkbox" />
<input id="two" type="checkbox" />
</form>
JavaScript
var one = $("#one");
var two = $("#two");
one.click(function() {
if (one.is(":checked")) {
if (two.is(":checked")) {
alert("foo foo");
} else {
alert("foo");
}
}
});