JSFiddle - React, Tailwind, and code Playground

by calder12

HTML

<input type="radio" name="group1" value="opt1" id="opt1"> Option 1<br>
<input type="radio" name="group1" value="opt2" id="opt2" checked> Option 2<br>
    
    <div id="remind">Remind</div>
    <div id="cc">CC</div>

CSS

div{width:100px;height:25px;background-color:#CCC;margin:10px;padding:20px;}

JavaScript

$("opt1").on("change",function(){
    if($(this).is(':checked'))
       {
           $("#remind").show();
        }
});