JSFiddle - React, Tailwind, and code Playground
by cucocreative
HTML
<div class="pull-me">
Click here!
</div>
<div class="panel">
show/hide
</div>
CSS
.panel {display:none;}
JavaScript
$(document).ready(function() {
$('.pull-me').click(function() {
$('.panel').slideToggle('slow');
});
$('a').toggle(function() {
$(this).html("Click to open!");},
function() { $(this).html("Click to close!");
});
});