JSFiddle - React, Tailwind, and code Playground
by ThiefMaster
HTML
<div>
<input type="checkbox" />
<input type="checkbox" />
<input type="checkbox" />
<input type="checkbox" />
<input type="checkbox" />
</div>
<div>
<input type="checkbox" />
<input type="checkbox" />
<input type="checkbox" />
</div>
CSS
div {
border: 1px solid black;
margin-bottom: 1px;
}
JavaScript
$('input:checkbox').click(function() {
$(this).siblings('input:checkbox').not(this).removeAttr('checked');
});