I am trying to add a class to the last cell in each row of the table ... this does not work ... it applies only rightStyle to the last element in the first (top) row ...
var lastIndex = getLastVisibleIndex();
var rows = $("table.scrollable tr");
rows.each(function () {
$("td:eq(" + lastIndex + ")").addClass(rightStyle)
});
source
share