JSFiddle - React, Tailwind, and code Playground

by TrueBlueAussie

HTML

<input type="checkbox" id="one" />
    <input type="checkbox" id="two" />
    <input type="checkbox" id="three" />
    <input type="checkbox" id="four" />

JavaScript

var $checks = $('input[type="checkbox"]');
$checks.click(function() {
   $checks.not(this).prop("checked", false);
});