Hi It, I'm agree with Maarten, but if you still likje a
On 10 mar, 11:22, Maarten <[email protected]> wrote: > The first thing that hit my mind was: why would you want your SELECT > element to behave that way? It just seems user unfriendly to me. You > obviously want to present the user a bunch of options, and then > disable certain options based on the user's selection. Now, if I > imagine how this would work in action, the SELECT element will > collapse immediately after the user has selected an option, and > therefore the user won't notice any modifications applied to the > SELECT element. IMO, a better solution would be to present the user a > bunch of radio buttons, so enabling options will become visible to the > user. > > So, could you tell a bit more about the situation you're working from > and why choosed this solution? > > On 10 mrt, 02:08, lt <[email protected]> wrote: > > > 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---
