JSFiddle - React, Tailwind, and code Playground
by ChrisStanyon
HTML
<div id="frame">
<h6>Postponed Task</h6>
<div id="ctl09_ctl02_divPostponedTaskGrid">
<div>
<table class="grid_view">
<tr><td>Some Table Data</td></tr>
</table>
</div>
</div>
</div>
<div id="frame">
<h6>Postponed Task</h6>
<div id="ctl09_ctl02_divPostponedTaskGrid">
<div>
</div>
</div>
</div>
<div id="frame">
<h6>Postponed Task</h6>
<div id="ctl09_ctl02_divPostponedTaskGrid">
<div>
<table class="grid_view">
<tr><td>Some Table Data</td></tr>
</table>
</div>
</div>
</div>
CSS
#frame { border: 1px solid green; margin: 5px 0px; padding:10px; }
JavaScript
$('#frame h6').each(function() {
if (! $(this).parent('#frame').find('.grid_view').length ) {
$(this).parent('#frame').hide();
}
})