JSFiddle - React, Tailwind, and code Playground
by Niels Harbo
HTML
<div class="sortable">
<div class="sectionDropDown">
Nested element in first div<br/>
</div>
</div>
<br/>
<div class="sortable">
<div class="sectionDropDown">
Nested element in second div<br/>
</div>
</div>
CSS
.sortable{
min-height:80px;
border:1px solid red;
}
.sectionDropDown{
background:orange;
padding:5px;
}
JavaScript
$(".sortable").click(function(e) {
$(this).find(".sectionDropDown").slideToggle();
});