JSFiddle - React, Tailwind, and code Playground

by Ender

HTML

<div class="header-person">Referral 1&nbsp;&nbsp;<img class="open-icon" src="http://www.jpopasia.com/img/icons/iconPlus.gif" width="16" height="16" border="0" />
<img class="close-icon" src="http://cdn.iconfinder.net/data/icons/splashyIcons/remove_minus_sign.png" width="16" height="16" border="0" style="display:none;" /></div>
<div class="entry">
    answer 1
</div>

JavaScript

$(function() {
    $('.entry').hide();
    $('.header-person').click(function(e) {
        e.preventDefault();
        $(this).nextAll('.entry:first').slideToggle("fast");
        $(this).children('.close-icon, .open-icon').toggle();
    });
});