WEIGHT-10 Re: [Javascript] disabled menus

Chuck Soper chucks at velofish.com
Tue Mar 1 17:59:47 CST 2005


Thanks for this suggestion. I'll try something like that.

Can I ask that you do not include a mailto link with my email address 
in your response? I'm afraid that if these archives are posted then 
my email address will be susceptible to spam.

Chuck

At 11:51 AM -0700 3/1/05, Peter Brunone wrote:
>    If you can't disable an option (it's possible that I could be 
>wrong once this year), you might consider getting creative with the 
>JS if you don't want to eliminate that option completely.  For 
>example, you could color the text or background differently, and 
>then hook up the onchange event handler to a function.  The function 
>can check to see if the list is on a "forbidden" option, and then 
>either (a) clear the selection or (b) re-select the 
>previously-selected value.
>
>FWIW...
>
>Peter
>
>From: Chuck Soper
>
>Thanks. I tried that and it didn't work either. I will take a totally
>different approach. That is, I'll accept that it's not possible to
>"disable individual options in a select element" as Peter Brunone
>suggested.
>Thanks for everyone's help.
>Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20050301/93bbf1d5/attachment.htm>


More information about the Javascript mailing list