Using jQuery to get the absolute or relative position of a div position

I will try to explain what I am trying to get. I have a div with the position: fixed (at the bottom of the page) in this div, there are other divs. I want to show another div (with an absolute position) aligned to the right with these divs ... in other words, I will not know the left position of the divs ...

+6
javascript jquery html
source share
2 answers

Regarding the document:

$('#ID').offset().left 

Regarding parent offset:

 $('#ID').position().left 
+20
source share
 $('#ID').position().left 
+2
source share

All Articles