$(function(){ var offset = $('.target').offset(); $('.target').append( ": left=" + offset.left + ", top=" + offset.top ); });
<h3 class="target">get offset position with jQuery</h3>
.target { margin:20px; padding:3px; position:absolute; left:10px; top:5px; }