Is there a way of finding the absolute position of an element, i.e. relative to the start of the window, using jQuery?
Javascript – How to find the absolute position of an element using jQuery
javascriptjquery
Related Topic
- Javascript – var functionName = function() {} vs function functionName() {}
- Javascript – Retrieve the position (X,Y) of an HTML element
- Javascript – How to redirect to another webpage
- Javascript – How to check whether a checkbox is checked in jQuery
- Javascript – How to remove a specific item from an array
- Javascript – Scroll to an element with jQuery
- Javascript – How to return the response from an asynchronous call
Best Answer
.offset()
will return the offset position of an element as a simple object, eg:You can use this return value to position other elements at the same spot: