JSFiddle - React, Tailwind, and code Playground

by joplomacedo

HTML

<input type="radio" name="group1" class="new" />
<input type="radio" name="group1" class="new" />
<input type="radio" name="group1" class="new" />

JavaScript

$(".new").mouseup(function(){
    if( $(this).is(':checked') )
        alert("You already have this option selected!");
    else
        alert("This option is unselected");
});