JSFiddle - React, Tailwind, and code Playground
by ian_smithz
HTML
<a href="#" class="more" data-target="#more1">show more</a> <br>
<div id="more1" class="toggle" style="display:none;">
this is more
</div>
JavaScript
$(document).ready(function(){
$( ".more" ).click(function() {
var tgt = $(this).attr('data-target');
$(tgt).toggle( "slow" );
});
});