jQuery offset() Method
The jQuery offset() Method can be used in two ways. The first is to determine the offset coordinates of an element and second change the offset cooridinates.
Returning the offset coordinates
The code was taken from the W3C example with selector changed from element to #id
This is a paragraph with the id="para".
Setting the offset
This is a paragraph with the id="para2" - Click to move it.
The new position will be moved to the Links section.