The position( ) method gets the top and left position of an element relative to its offset parent.
The returned object contains two Integer properties, top and left. For accurate calculations make sure to use pixel values for margins, borders and padding. This method only works with visible elements.
Here is the simple syntax to use this method:
Here is the description of all the parameters used by this method:
Following is a simple example a simple showing the usage of this method: