JSFiddle - React, Tailwind, and code Playground
HTML
<div id="status">
<div id="tools"><a href="" id="tool1">hide</a></div>
Lots of stuff here..
</div>
CSS
#status{
border: 1px solid black;
height: 250px;
}
JavaScript
$(document).ready(function() {
$("#tool1").click(function() {
var $statusDiv = $('#status');
if ($statusDiv.height() > 100) {
$statusDiv.height(50);
}
else
{
$statusDiv.height(250);
}
});
});