about "Event.observe" problem.

<select name="address[country]" id="address_country"> <option value="CA">Canada</option> <option value="US">United States</option> <option disabled="disabled">------------</option> <option value="UK">United Kingdom</option> </select> <script type="text/javascript">Event.observe("address_country", "change", function(){ shownameList();});

function shownameList(){   var country = $F('address_country');   alert(country) } </script> when I chosed United Kingdom or Canada, There always said "US". Why? who can Help me? Please! and Thanks!


This is worked for me in Firefox.

Maybe you have another “id” named “address_country” with value “US” in file?

Regards, Murat