Your selector html seem to be OK but you read it carefully you will
see that selector has not a value attribute.
Selector has an array of options as child nodes and those have value
attributes. You can read any of those values but you should read the
value of the option that is selected.
document.getElementById("bairro").value
does not return anything
document.getElementById("bairro").options[0].value
returns the value of the first option
var selector = document.getElementById("bairro");
selector.options[selector.selectedIndex].value;
returns the value of the selected option.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---