Selecting an arbitrary cell in a table by row and column number

后端 未结 4 1272
臣服心动
臣服心动 2020-12-31 07:26

I have a large table, and I need to be able to select a specific cell using it\'s cell/row coordinates.

What\'s the most elegant way of doing this using jQuery?

4条回答
  •  臣服心动
    2020-12-31 08:06

    After reviewing the fiddle you posted in one of your comments, this could also work.

    http://jsfiddle.net/CGrP9/6/

    $('tbody tr').eq(2).find('td').eq(2).css('background-color', 'green');
    

提交回复
热议问题