I have this code that read the first value in a html table
var firstNameinFirstCol = $(this).parents('tr:first').find('td:first').text();
this work great but now I need something that reads the 3rd column in that same row. Something like this
var lastNameinThirdCol = $(this).parents('tr:first').find('td:third').text();
does Jquery support something similar to this?
How about using
closest(instead ofparents) and:eq()?