Get first TD of THIS row

Fairly easy yet i did not find how to do this online.

I want the first TD of the this element (row)

$(document).on("click", "#posTable tr", function() { 



i tried:

alert($('td:first', $(this).parents('tr')).text()));

You need to use find() to get the first td in the given row. You can also pass this in selector as a context.

Using find()


Using jQuery( selector [, context ] )

alert($('td:first', this).text());