JSFiddle - React, Tailwind, and code Playground

by Joe Saad

HTML

<div class="section">

<fieldset class="customer-info"> 
               <label>
                  <input type="radio" id="switch" name="transType">Switch   
               </label>
               <label>
                  <input type="radio" id="move_in" name="transType">Move-In
               </label>
               <label>
                  <input type="radio" id="swap" name="transType">Swap   
               </label>
               <label>
                  <input type="radio" id="tos" name="transType">Transfer Of Service   
               </label>
</fieldset>
</div>
<a href="#">M</a>

JavaScript

$(document).ready(function() {

    $('a').click(function() {
/*        if ($('div.section input[type="radio"]').is(':checked')) {
            alert('cool');
        }
        else {
            alert('no cool');
        }
  */
        
        if ($('input[name="transType"]:checked').length > 0) {
            alert('cool');
        }

    });


});