Saturday, January 3, 2009

[jQuery] Re: select a specific row in a table

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.

No comments:

Post a Comment