I've got a standard select box with options, and the select box has an
id of "theme_choice"

I've found the following script online, but it isn't popping up an
alert when a selection is made:


$$('#theme_choice').each(function(elem){
                                if (elem.selected) alert(elem.text + ' ' + 
elem.value);
                });


Prototype is called just before this in the head area of the page. I'm
using the latest version RC3.

This is for a theme changer script on my website. I have a current
theme changer script, but I'm trying to play around with prototype.

I don't know if it is spam to put a link to my website or reference
it, so I won't, but the select box with options is really just a
standard form element. Nothing special.

Thanks for your help.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to