views:

13

answers:

1

I follow the http://gmaps-samples-v3.googlecode.com/svn/trunk/geocoder/getlatlng.html

instead of displaying the 'latlng' in ,

how do i display it in

+1  A: 

If I understand your question correctly (.ie the lat/long value is appearing in the div below the map and you want it to appear in the input text field at the top) then you should change the following line of Javascript (Line 75)

document.getElementById('latlng').innerHTML = latlng;

to

document.getElementById('address').value = latlng;
irishbuzz
thanks, it work
Pete
Maybe you should consider selected this answer as the solution then :-)
irishbuzz