JSFiddle - React, Tailwind, and code Playground

by lollero

HTML

<a class="entryheader">...</a><br /><br />
<div class="entrycontent">...<br />
<p class="entryfoot">...</p>

<a class="entryheader">...</a><br /><br />
<div class="entrycontent">...<br />
<p class="entryfoot">...</p>

JavaScript

$("a.entryheader").click(function(){
    $(this).next("div.entrycontent").show();
    
    console.log( $(this).next("div.entrycontent") );
});