JSFiddle - React, Tailwind, and code Playground

HTML

<form>
<p>
<input type="checkbox" name="test" value="1" checked="checked">
<input type="checkbox" name="test" value="2">
<input type="checkbox" name="test" value="3">
</p>
</form>

JavaScript

var $checkBoxes = $('input[type="checkbox"]');
    $checkBoxes.click(function() {
        var $this = $(this);
        if ($this.is(':checked')) {
            $checkBoxes.not($this).removeAttr('checked'); //Reset-uj ostale
        }
    });