How to set position of element equals to position of another element?
<p>The simple question. How to set position of element equals to position of another element by jquery or javascript?</p>

<p>The following code doesn't work:</p>

<pre><code>$('#credit_tip').css('top', $('.credit').position().top);
$('#credit_tip').css('left', $('.credit').position().left);
</code></pre>
