Or simply

$('.main:eq(1) > td:eq(1)').text();

In case you need it, you can select elements by their contents too,
althought it's a bit slower:

$('.main td:contains(Presse)')

See the docs page for all available selectors:

docs.jquery.com/Selectors
docs.jquery.com/Traversing

On Jan 3, 11:59 am, "Mauricio \(Maujor\) Samy Silva"
<css.mau...@gmail.com> wrote:
> Suppose we want target the second cell of the second row whose class is
> "main" :
>
>   selectedCell = $('.main').eq(1).find('td').eq(1).text()
>   alert(selectedCell);
>
> >Hello,
> >I would to know how I can get a specific row in a table and get the
> >text of a specific td.

Reply via email to