Hello All - Is there a smart way to get the position of a mouse-event relative to to div? in this example:
http://jsfiddle.net/E3gp8/ If you click on on the green square from the event you can get its client/page.x but what i really want is the the position of the click event with respect to the "inner" div. obviously i could subtract off the left value of the "container" + the left value of the "inner" div. but i want it to be as flexible as possible so it doesn´t matter the structure of the dom that it is placed in. If not is there a way to get the value of the x-position of a div... so in this case the "container" has left=50px and the the "inner" has left=50 but is there away to get the left value relative to the page of the inner div (in this case 50+50 = 100). Again I want to get this info without referencing the containing div or divs so that its as flexible as possible.
