Can I get the coordinates of a div with JQuery?

jquery

Solution

jQuery('#id').offset()

Returns an object with top and left offsets.

http://api.jquery.com/offset/

Problem

the postion of the div on the page varies. How can I get the y position from the top?

Original source