JSFiddle - React, Tailwind, and code Playground
HTML
<input type="radio" id="myRadio" >
<input type="radio" id="myRadio" >
<input type="radio" id="myRadio" >
<label for="myRadio" > Click me </label>
JavaScript
$('#myRadio').off('click').on('click', function() {
if ($(this).data('checked')) {
$(this).removeAttr('checked');
$(this).data('checked', false);
} else {
$(this).data('checked', true);
}
});