Mustapha George
Mustapha George

Reputation: 2527

jQuery selectors rows and columns

If this gives me the 5th column (td) in row (tr) identified by id=row5,

var myCell = $('#row5 td:th-child(6)');

what statement would give me the 7th column in the following row?

Upvotes: 0

Views: 131

Answers (1)

Cokegod
Cokegod

Reputation: 8434

$('#row5 + tr td:nth-child(7)');

Upvotes: 2

Related Questions