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;
}); 

Leave a Reply

Your email address will not be published. Required fields are marked *

Current month ye@r day *