JSFiddle - React, Tailwind, and code Playground

by Rational Rabbit

HTML

<form>
    <input type="radio" id="one" name="a" />
    <input type="radio" id="two" name="a" />
    <input type="radio" id="three" name="a" />
  
</form>

JavaScript

$(function(){
    
    
   $('input').change(function() {
    if ($('#one').is(':checked')) {
        alert('checked');
    } else { 
        alert('not checked');
    }
    }); 
    
    
});