Click to See Complete Forum and Search --> : disable a dropdown box..?


cakeday
07-09-2003, 11:32 AM
I have a dropdown box and i want to disable it, but i still want it to be visible on the form..
i tried putting disable="true" .. but it doesn't work..

my code looks as follows:
<SELECT id=select1 name=select1 disable="true">
<OPTION>january</OPTION>
<OPTION>january</OPTION>
<OPTION>january</OPTION>
</SELECT>

How do i do it..
Thank you in advance..

spufi
07-09-2003, 11:54 AM
<SELECT id="select1" name="select1" disable>
<OPTION>january</OPTION>
<OPTION>january</OPTION>
<OPTION>january</OPTION>
</SELECT>

That should work. Just note that disable may not work in older browsers.

cakeday
07-09-2003, 11:58 AM
I tried,

<SELECT id=select1 name=select1 disable>
<OPTION>january</OPTION>
<OPTION>january</OPTION>
<OPTION>january</OPTION>
</SELECT>

doesn't work..

My browser version is
MICROSOFT IE 6.0.2800....

Any other suggestions?

requestcode
07-09-2003, 12:36 PM
It should be disabled="true" like this:
<SELECT id=select1 name=select1 disabled="true">

Now that you have done that are you ever going to want to enable it?

cakeday
07-09-2003, 01:37 PM
Thank you! Requestcode..

Yes, in the future for some reports, i might have to enable it.. why do you ask?