Dropdown boxes

G

Geoff

I have a dropdown box on a webpage, which contains several choices.
Is it possible to "grey-out" one or more of these so that they are still
visible in the dropdown box, but cannot be selected?

Thanks in advance,

Geoff
 
A

Adrienne Boswell

I have a dropdown box on a webpage, which contains several choices.
Is it possible to "grey-out" one or more of these so that they are still
visible in the dropdown box, but cannot be selected?

Thanks in advance,

Geoff

That's confusing for the user. If it isn't available, don't show it.
 
J

Jim Moe

Geoff said:
I have a dropdown box on a webpage, which contains several choices.
Is it possible to "grey-out" one or more of these so that they are still
visible in the dropdown box, but cannot be selected?
That would be the "disabled" attribute for <option>.
 
G

Geoff

Jim Moe said:
That would be the "disabled" attribute for <option>.


Thanks for the reply Jim, but I have since gathered that he "disabled"
function doesn't work in IE. Seems a bit odd, since this is probably the
most used, but sure enough it doesn't.

Geoff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top