JSFiddle - React, Tailwind, and code Playground
by tymeJV
HTML
<div class="Cat" style="width: 155px; float: left">
<p>Employee Role</p>
<input class="RoleChk" name="Role" type="checkbox" value="OfficeEmployee"/> Office Employee<br/>
<input class="RoleChk" name="Role" type="checkbox" value="Marketer"/> Marketer<br/>
<input class="RoleChk" name="Role" type="checkbox" value="ProjectManager"/> Project Manager<br/>
</div>
<div class="Cat" style="width: 155px; float: left">
<p>Groups</p>
<input class="GrpChk" name="Group" type="checkbox" value="Aviation"/> Aviation<br/>
<input class="GrpChk" name="Group" type="checkbox" value="Electrical"/> Electrical<br/>
<input class="GrpChk" name="Group" type="checkbox" value="Mining"/> Mining
</div>
JavaScript
$(".RoleChk, .GrpChk").change(function() {
this.checked ? $("." + this.className).not(this).prop("disabled", true) : $("." + this.className).not(this).prop("disabled", false);
});