What is the fastest and easiest way to get the first matching sibling (in a given direction) with jQuery?
This works, but I'm not sure that it's the best approach.
$('#foo').nextAll('.bar:first'); $('#foo').nextUntil('.bar').next();