Issue: When I click on the area next to either address (in the div) when the mouse cursor is default, not the pointer, on click it still takes the user to the location on the map. How can I stop this so it only takes the user to that map location if they click on the actual address rather than clicking on an empty area within that div?
Share
You’ve got many calls to “myClick(0)” within anchor tags. If you are a little bit more selective about where you put them you should be able to find the appropriate solution. If you only want the address to trigger the map, then wrap it like this:
And remove the calls to any other myClick(0) that you don’t need.