SyntaxFix
Write A Post
Hire A Developer
Questions
I got another Solution. Subtract parent property value from child property value
$('child-div').offset().top - $('parent-div').offset().top;