I have an element (a div) that is 100px wide and 30px high. I would like to calculate where on this element did the user click. For example if the click right in the middle of it I would like to get 50 for x coordinate and 15 for y coordinate. The values returned need to be relative to the element itself not the page or the parent.
Is this doable with JavaScript or JQuery?