How can I hide the header div when there are no rows in the table. My css is not working.
.myTable:empty ~ .header {
display: none;
}
<div class="row">
<div class="header">ADDITIONAL ITEMS:</div>
<div class="clearfix"></div>
<div class="table-responsive m-t">
<table class="myTable">
</table>
</div>
</div>
Any suggestions, Please!