Possible Duplicate:
JQuery: How to select rows from a table
I am a beginner in jQuery. I have a table with multiple rows, how do I select next row or previous row after selecting a particular row?
Possible Duplicate:
JQuery: How to select rows from a table
I am a beginner in jQuery. I have a table with multiple rows, how do I select next row or previous row after selecting a particular row?
For the next row (assuming myRow is your selected row element):
$(myRow).next();
I'd recommend using the very powerful selector syntax, instead of selecting previous and next elements based on currently selected element instances, however:
$(this).next();
or
$(this).prev();