Revision: 28765
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 14, 2010 03:14 by iqwebdev
Initial Code
$(function() { $("#demo-box").click(function(e) { var offset = $(this).offset(); var relativeX = (e.pageX - offset.left); var relativeY = (e.pageY - offset.top); alert("X: " + relativeX + " Y: " + relativeY); }); });
Initial URL
Initial Description
Initial Title
Get X, Y Coordinates of Mouse Within Box
Initial Tags
Initial Language
jQuery