How can I find the head line each table cell's "visual location" using jQuery?
For example, if click "this" or "click this" cell, get "second" cell's text.
table,
th,
td {
border: 1px solid black;
}
<table class="table table-bordered">
<thead>
<tr>
<th>third</th>
<th colspan="2">second</th>
<th>third</th>
</tr>
</thead>
<tbody>
<tr>
<td rowspan="2"></td>
<td>this</td>
<td>this</td>
<td></td>
</tr>
<tr>
<td rowspan="2">this</td>
<td>click this</td>
<td></td>
</tr>
<tr>
<td></td>
<td>this</td>
<td></td>
</tr>
</tbody>
</table>