JSFiddle - React, Tailwind, and code Playground

by ipr101

HTML

<table border="1">
<tr>
<td rowspan="2">September</td>
<td>Jim</td>
</tr>
<tr>
<td>Dave</td>
</tr>
<tr>
<td>October</td>
<td>Fred</td>
</tr>
</table>

JavaScript

var maxcols = 0;

$('table tr').each(function() {
    $(this).children().length > maxcols ? maxcols = $(this).children().length : maxcols = maxcols;
});

$('table tr td:first-child').each(function() {
    if ($(this).text() != '' && $(this).parent().children().length === maxcols)
        alert($(this).text());
});