showing results for - "jquery get mouse page left and top"
Alaska
27 Feb 2019
1$("#something").click(function(e){
2   var parentOffset = $(this).parent().offset(); 
3   //or $(this).offset(); if you really just want the current element's offset
4   var relX = e.pageX - parentOffset.left;
5   var relY = e.pageY - parentOffset.top;
6});
7
8
9/-FOLLOW ME ON INSTA-/
10@hardcode_studios