I have a table with images in one column. When I click the image, would like to get the text value of the first column in that row.
I can get the whole row with this:<
How about?
var a = $('td:first', $(this).parents('tr')).text();
Here's another option:
var a = $(this).closest('tr').find('td:first').text();