JQuery Uzyskaj bieżącą wartość wiersza

function test(){
    var id = $(this).closest("tr").find('td:eq(2)').text();
    alert(id);
}
Grieving Gecko