Getting text from the following cell is pretty simple:
$("td.clCode a").click(function(e){
e.preventDefault();
var nextText = $(this).parent().next().text();
});
Getting text from another cell can be done by its index in the adjacent table-table:
$("td.clCode a").click(function(e){
e.preventDefault();
var cellText = $(this).closest("tr").find("td:eq(3)").text();
});
source
share