title: Get the absolute position of a div relative to the window
body: <p><a href="https://stackoverflow.com/questions/1371379/using-jquery-to-get-absolute-or-relative-position-position-of-a-div">This question</a> is quite similar to what I want I'm looking for, but my situation is different enough, I think, to merit a new question. </p>
  
  <p>I have several divs positioned absolutely inside of a parent div (<code>position: relative</code>). I want to get the position of the children divs relative to the window. The jquery <code>offset()</code> method doesn't seem to work, because it gives me the offset from the parent div. Is there a way to get the absolute position of a div that has absolute position inside of a relative position div?</p>
  
  <p>Sample html:</p>
  
  <pre><code>&lt;div id="parent" style="position:relative;"&gt;
    &lt;div id="child1" style="position:absolute; top:10px; left 8px;"&gt;Child 1&lt;/div&gt;
    &lt;div id="child2" style="position:absolute; top:20px; left 8px;"&gt;Child 2&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>