I know that I can get first or last table cell (e.g. for last row) using jQuery expression like below:
first cell: $(\'#table tr:last td:first\')
or las
Use the nth-child selector.
For example,
$('#table tr:last td:nth-child(2)')
Yes:
$('#table tr:last td:eq(1)')
that will give you the second td
in the last row.
It's very simple without jQuery, and will work faster and in more browsers:
var table = document.getElementById("table");
var row = table.rows[table.rows.length - 1];
var cell = row.cells[2];