jquery top code example
Example 1: scrool to top jquerry
$("a[href='#top']").click(function() {
$("html, body").animate({ scrollTop: 0 }, "slow");
return false;
});
Example 2: jquery get left position
var position = p.position();
var left = position.left; '<-- left value for p