I wonder whether someone can help me please with a problem I've been trying to sort out most of the week.
I have the following page
here that allows the user to view certain map markers upon selection and deselection of check boxes.
What I'm now trying to do is to populate a text field called 'address' with the address details when the markers on the map are clicked. I know that I pulling the data from the php script, but for the life of me I can't find a way of populating the text box with the information.
I'm using the following code in line 49 of my script: document.getElementById('address').value = address; but upon clicking the marker all I receive is a'undefined' in the 'address' text field. I've tried adding this to various points within the code without any success.
Could someone perhaps please show me what i need to change to get this to work.
Many thanks and kind regards.