I am trying to move X number of rows in a table using jQuery ...
I can do the following and it works.
for (var rowCount = 1; rowCount <=3; rowCount++) { foobarRow = $(foobarRow).next('tr'); }
I understand that I can go
foobarRow = $(foobarRow).next('tr'); foobarRow = $(foobarRow).next('tr'); foobarRow = $(foobarRow).next('tr');
and...
but I wonder if there is no more jQueryish way to accomplish the same thing?
sort of, I don’t know, but (fully written jQuery syntax follows) ...
foobarRow = $(foobarRow).next('tr').number(3);
source share