google maps and geocodeing with jQuery?

google maps and geocodeing with jQuery?

Hello there!
I was wondering if this scenario is possible with jQuery in combination with Google Maps:

#1 - Let a user input their address into a form text field and geocode it into latitude and longitude.
 > I'm letting the users select their municipality from a list before they enter their street address. Is it possible to update the map to show the selected municipality on click?
-- I have the municipalities stored in a MySQL-table. I could store som longi-/latitudes there to use...
> When the user has inputted their address and clicks a "refresh map"-button a marker is shown. If the location is not found or incorrect; Place the marker nearby and let the user manually position it.
--  is it possible to have som sort of auto-update-map thing? Like when the user leaves the address field for instance...

This was for the registration process.
Next up is for the viewers when they look at a single entry (a club for instance):

#2 - Fetch the longi-/latitude from hidden text fields and use if for centering the map and placing a marker.

If it's possible somehow, I would really appreciated some help with it...


best regards
Thomas