Hi there,

Have a quick question  - what is the most simple way to go about
"hiding" (or setting css display property to "none") a specific select
dropdown option by value?

For instance, say I have this:

<select id='mySelect'>
<option value='1'>One</option>
<option value='2'>Two</option>
...
</select>

With the Prototype library, how can I modify the code below to "hide"
option "Two" when option "One" is selected?

<script>
document.observe("dom:loaded", function () {
                var test = $('mySelect').getValue("1");
                test.hide;
});
</script>

Thanks in advance!


--~--~---------~--~----~------------~-------~--~----~
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