JSFiddle - React, Tailwind, and code Playground

by Sambora

HTML

<input type="radio" checked="checked" value="" name="display" />Home
<input type="radio" value="" name="display" />Featured
<input type="radio" value="" name="display" />Normal
<input type="radio" value="" name="display" />Draft


<div id="Featured" class="desc" style="display:none">Featured desc</div>
<div id="Normal" class="desc" style="display:none">Normal desc</div>
<div id="Draft" class="desc" style="display:none">Draft desc</div>

JavaScript

$('input[type="radio"]').on('change', function() {
    $('.desc').hide();
    $('#' + $.trim(this.nextSibling.nodeValue)).toggle(this.checked);
});