hi,

Thanks for your reply.

I tested it but it always returns the first item: item1.

I've also noticed that my code

alert ( document.form1.myList[$F('myList')].text);

is wrong and doesn't work.

This is working

id = document.form1.myList.selectedIndex;
myText = document.form1.myList[id].text;
alert(myText);

Maybe I'm looking at this the wrong way and shouldn't try to use
Prototype here.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to