var ClosestPrev = $( StartObject ).prevAll( '.selectorClass' ).first(); var ClosestNext = $( StartObject ).nextAll( '.selectorClass' ).first();