JSFiddle - React, Tailwind, and code Playground
by calder12
HTML
<!DOCTYPE html>
<html>
<body>
<div class="content-box fancy-corner">
<p><a href="#" class="question">Question 1</a></p>
<p class="answer" style ="height:50px;width:100%;background-color:Yellow;display:none;"></p>
</div>
</div>
<script type="text/javascript">
$(document).on("click", ".question", function () {
$(this).parent.next("p.answer").css("display", "block");
});
</script>
</body>
</html>