I\'m working on a project using Google Maps v3 that will allow users to drag and drop randomly placed markers (quantity, coordinates, and labels generated with php).
Here is the answer. Define a custom id based on your marker properties and based on that access yout input field ids: