JSFiddle - React, Tailwind, and code Playground
by Drackir
HTML
<div>
<input type="checkbox" />1<br />
<input type="checkbox" />2<br />
<input type="checkbox" />3<br />
</div>
<div>
<input type="checkbox" />1<br />
<input type="checkbox" />2<br />
<input type="checkbox" />3<br />
</div>
JavaScript
$(function() {
$("input[type=checkbox]").click(function(){
$(this).siblings("input[type=checkbox]:not(this)").attr("checked", "");
});
});