SyntaxFix
Write A Post
Hire A Developer
Questions
var top = event.target.offsetTop + 'px';
Parent element top position like we are adding elemnt inside div
var rect = event.target.offsetParent; rect.offsetTop;