jQuery dapatkan nilai baris saat ini

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