See below:

----- Original Message -----
From: "Chunshen (Don) Li" <[EMAIL PROTECTED]>
To: "CF-Community" <[EMAIL PROTECTED]>
Sent: Friday, July 09, 2004 4:16 PM
Subject: Re: You have see it but you can't have it :)

> >Won't pretend I understand why... but this should do you:
> >
> ><script type="text/_javascript_">
> >     function doDisabled(fld, num) {
> >          if (num < 2) fld.selectedIndex = 2;
> >     }
> ></script>
> >
> ><select name="test" this.selectedIndex);">
> >     <option value="1" style="color:#cccccc;
> >background-color:#ececec;">op1</option>
> >     <option value="2" style="color:#cccccc;
> >background-color:#ececec;">op2</option>
> >     <option value="3" selected="selected">op3</option>
> >     <option value="4">op4</option>
> ></select>
>
> Thank for the idea but it's not exactly what I'm looking for.  I intend to
"entice" the user(s) with some viewable options (goodies), but not
> selectable right when he selects the select box but not when making a
selection.  Yours seems some sort of workaround, sorry won't work for > my
case.  I don't get it why IE 6.x does not support it.  The concept of "You
can see it but you can't have it" so prevailing!  Man, I don't know > what
else to say.  Ben, radio buttons, as you realizes as well, won't do it.

Sorry Don...I don't follow.  The code I sent works in IE 6 (it's a fairly
straightforward script that should work in just about any browser that has
JS enabled).  It also suits your requirements as you presented them:

1) All options are viewable
2) Certain viewable options are not 'selectable'

Not sure what you mean by mine being a 'workaround' or why it won't work in
your case.  Can you elaborate?
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to