JSFiddle - React, Tailwind, and code Playground
by Kelly Hawker
HTML
<label><input id="rdb1" type="radio" name="toggler" value="1" />Money</label>
<label><input id="rdb2" type="radio" name="toggler" value="2" />Interest</label>
<div id="blk-1" class="toHide" style="">
money
</div>
<div id="blk-2" class="toHide" style="display:none">
interest
</div>
JavaScript
$(function() {
$("[name=toggler]").click(function(){
$('.toHide').hide();
$("#blk-"+$(this).val()).show('slow');
});
});