Hi,
<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>
This is worked for me in Firefox.
Maybe you have another "id" named "address_country" with
value "US" in file?
Regards,
Murat
--
- - - - - - - - - - - - - - - - - - - - - -
Murat Ârif ÇELİKER < http://www.ikinoktayazilim.com/wordpress >
İkinokta Yazılım, Bursa
http://www.ikinoktayazilim.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---