JSFiddle - React, Tailwind, and code Playground
by adeneo
HTML
<input type="checkbox" class="radiocheck" />
<input type="checkbox" class="radiocheck" />
<input type="checkbox" class="radiocheck" />
<input type="checkbox" class="radiocheck" />
<input type="checkbox" class="radiocheck" />
<input type="checkbox" class="radiocheck" />
JavaScript
var $radiocheck = $('input.radiocheck');
$radiocheck.on('click', function() {
$radiocheck.not(this).attr('checked', false);
this.checked = this.checked===true ? true:false;
});