jquery get position from targeted element
<p>how can i get position of an element from targeted element </p>

<pre><code>&lt;div class="photo_container"&gt;
     &lt;p&gt;abasdfasdfsadf&lt;/p&gt;
       &lt;div id="drag_item" class="box"&gt;
      &lt;img src="abc.jpg" id="image_placed" &gt;  
    &lt;/div&gt;
&lt;/div&gt;

$(function() {
   var p = $("#image_placed").position('.photo_container');
   alert(p.left);
});
</code></pre>
