Table first column element demo
It displays the index of first element of first column in table
HTML
<table>
<tr>
<th>A</th>
<th>B</th>
<th>C</th>
<th>Action</th>
</tr>
<tr>
<td>Apple</td>
<td>Ball</td>
<td>Cat</td>
<td>
<button>Edit</button>
</td>
</tr>
</table>
JavaScript
$('button').click(function() {
$(this).parent().siblings(':first').each(function() {
alert('index ' + this.cellIndex + ': ' + $(this).text());
});
});