JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<div class="section">
Something <a href="#" class="jsToggleLink">+</a>
<div class="jsToggleDiv">
Write text here...
</div>
</div>
<div class="section">
Something else <a href="#" class="jsToggleLink">+</a>
<div class="jsToggleDiv">
Write text here...
</div>
</div>
CSS
.section {
margin: 10px 0;
}
JavaScript
$('a.jsToggleLink').click(function(){
$(this).closest(".section").find(".jsToggleDiv").toggle();
return false;
});