Sunday, May 19, 2024
91
rated 0 times [  95] [ 4]  / answers: 1 / hits: 31560  / 13 Years ago, tue, july 19, 2011, 12:00:00

I have a field called 'inputaddress' which a user types address details into, so they can perform a google map geocode.



What I would like to do is when the user clicks on the 'searchfortheaddress' button, it will perform the geocode but will then clear the 'inputaddress' field.



Could someone perhaps tell me please how I can clear the field.


More From » google-maps-api-3

 Answers
8
document.getElementById(inputaddress).value = '';

[#91117] Sunday, July 17, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kylee

Total Points: 60
Total Questions: 119
Total Answers: 101

Location: Bonaire
Member since Wed, Mar 29, 2023
1 Year ago
;