Getting Mouse event coordinates(X,Y) inside a div using Jquery

$("#specialElement").click(function(e){
    var x = e.pageX - this.offsetLeft;
    var y = e.pageY - this.offsetTop;
}); 

Add a Comment

Your email address will not be published.