I have a table, and I have a jQuery object that represents one of the TDs in the table.
I want to be able to scroll through all the rows in the table, starting from the next row from the row that jQuery'd TD is in, to the end.
So, if I have a table like this:
<table> <tr><td>A</td><td>B</td><td>C</td></tr> <tr><td>D</td><td>E</td><td>F</td></tr> <tr><td>G</td><td>H</td><td>I</td></tr> <tr><td>J</td><td>K</td><td>L</td></tr> <tr><td>M</td><td>N</td><td>O</td></tr> <tr><td>P</td><td>Q</td><td>R</td></tr> </table>
And suppose I have a jQuery object representing td with H in it:
var theTD = $(...the H cell...);
In this case, I would like to skip the last three lines.
So there is a good jQuery piece that would give me the equivalent:
theTD.nextRow_to_lastRow.each(...
source share