Given the following table:
<table id="incidents">
<thead>
<tr>
<th></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
Using jQuery the following evaluate as false
:
$("#incidents tbody").is(":empty")
I would like to use CSS to set the content to be a message:
#incidents tbody:empty {
content: "<tr>message foo</tr>";
}
Can the :empty
selector be applied to tbody?