I have a table that looks like this...
<h4>Section title</h4>
<table>
<tbody>
<tr class="myrow">
</tr>
</tbody>
</table>
I am trying to use CSS to target the H4 in realtion to the table below it. I have tried...
h4:has(+ .tr.myrow) {
color:red;
}
This isn't working, where am I going wrong?
UPDATE
I am now attempting to achieve this using jQuery instead like this...
$(".myrow").prev().prev().hide();
Still not seeing what I expect, can you stack .prev like this?