How to get offset() relative to parent in jQuery? February 27, 2023 by Tarik Use the position() method. $('#bar').position().left;