Hi! Is there any feature in jQuery to find the next node matching a criteria, regardless of that next node a sibling or not?
I know there is "next(<expr>)" and "prev(<expr>)" methods, but this only works for sibling. I specifically need to have something to look into siblings and non-siblings. The algorithm will probably look like this: (a) for each subsequent siblings, check if that sibling match the criteria, if not, traverse down to find first tree match the criteria, (b) failing that, go up to parent, then do (a) again, (c) do that until no parent exist (means not found). Maybe there is a plugin already doing that? Thanks! -- (stephan paul) Arif Sahari Wibowo _____ _____ _____ _____ /____ /____/ /____/ /____ _____/ / / / _____/ http://www.arifsaha.com/