I have an input set to a type of image:
<form id="MapForm" action="#">
<input type="image" src="usa.jpg" id="usa_map" alt="USA"/>
</form>
I want to attach a function so that I can get the X & Y coordinates where a person clicked:
$('#MapForm').submit(ClickOnMap);
function ClickOnMap(data)
{
return false;
}
I cannot find the X & Y coordinates inside 'data'. What am I doing wrong?