Making a Google Maps marker show a specific div when clicked
I'm pretty new to javascript and I'm learning as I go along, so sorry if this is simple. What I have is a bunch of markers displaying on the map, these are loaded from an array and displayed with a function. What I want to do is make a specific div pop up which is related to the marker that was clicked on. When another marker is clicked, that previous div closes and the new div opens up. This is what I have so far , to get a concept of what I'm doing. I imagine I would want to write a function that says... "If 'Marker A' is clicked, open up 'div A' and if 'Marker B' is clicked while 'Marker A'