JSFiddle - React, Tailwind, and code Playground

by alachgar

HTML

Voice OK ? <input type="radio" name="voice_ok" value="Yes" /> Yes <input type="radio" name="voice_ok" value="No"/>No <br>
Barriers ? <input type="radio" name="barriers" value="Yes" /> Yes <input type="radio" name="barriers" value="No"/>No

<br><br><br>
<input id="step-3" type="submit" value="click me" />Rents

JavaScript

$(function() {
    $("#step-3").click(function() {     
      if($('input[type=radio][name=voice_ok]:checked').length == 0  && ('input[type=radio][name=barriers]:checked').length == 0 )
      {
         alert("Please select atleast one");
         return false;
      }
         
    });
});