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).
Well one of the beautiful things about JavaScript is that you can assign objects fields on the fly. One thing you could do would give each marker a name or an id. To do that you simply say:
marker.id = whatever;
Then you can get the value of that like you would any property by calling marker.id;
That is probably the most efficient way of giving them unique id's. In your eventhandler for the dragend you could then just do and if-then-else to check which marker it was and update the related input fields.