JSFiddle - React, Tailwind, and code Playground
by GaryC123
HTML
<p class="close-space"><strong>Time:</strong> Time goes here</p>
<p class="close-space"><strong>Venue:</strong> Venue goes here</p>
<input type="hidden" id="showDescriptionTag" value="" />
<p id="pTag" class="close-space"><strong>Dinner:</strong>
</p>
JavaScript
$("p.close-space").each(function () {
$temp = $(this)
$temp.find("strong").remove()
if ($temp.html() == "") {
$(this).remove()
}
})