I would like to know how to get the distance/offset/position of an element relative to it\'s parent element.
Unlike jQuery\'s position() functionality,
position()
This should do it:
$('#pos1').offset().top - $('#pos1').parent().offset().top - $('#pos1').parent().scrollTop()