Assuming you are looking for div .nextAll("div:lt(2)").each(function(){});
On Aug 28, 6:55 pm, Jaggi <jaggi_2...@hotmail.com> wrote: > Basically i'm going through a table, i've used closest to get the > parent element which is a tr then i can use next() to get the next one > or nextAll() to get all the next ones however i just want to get the > next two elements so is there a way to limit nextAll() to only return > the next two matches rather than all of them?