JSFiddle - React, Tailwind, and code Playground
by Eric L
HTML
<table class='changed'>
<thead>
<th>column</th>
</thead>
<tr><td>td</td></tr>
</table>
<table>
<tfoot class='blah'><th>222</th></tfoot>
</table>
JavaScript
$("table tfoot th:last").each(function(index2, value2){
alert($(this).closest("tfoot").attr("class"));
});