Next and Previous in jQuery — a practical guide to jQuery next prev with clear examples you can reuse in real projects.
jQuery Tutorial Series (50/101). Prefer one article? Read the complete jQuery tutorial.
Short description
nextUntil/prevUntil stop before a matching selector.
next prev
$('.step').next();
$('.step').prev('.done');