Here is the table provided for reference:
<table id="incidents">
<thead>
<tr>
<th></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
When using jQuery, this evaluation results in false
:
$("#incidents tbody").is(":empty")
I am interested in using CSS to display a message instead of empty content:
#incidents tbody:empty {
content: "<tr>message foo</tr>";
}
Is it possible to apply the :empty
selector to the tbody element?