I have a certain identical div
on my webpage one below the other .I want to get the correct position of the div to certain message(which is absolutely positioned and fades out later).
so I tried this
$('.divs_article').click(function() {
var left=$(this).offset().left;
var top=$(this).offset().right;
});
but this is giving incorrect results for the div
that lie below the page,when I scroll down.
Is there any better approach.?
(PS:I have already tried this.)