Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 76065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:36:54+00:00 2026-05-10T20:36:54+00:00

We determined in a previous question that many features of HTML SELECTs are not

  • 0

We determined in a previous question that many features of HTML SELECTs are not supported in IE. Is there an alternative widget that you would recommend from your experience that meets the following requirements?

  1. Respects the contentEditable property (does not allow selection changes if true)
  2. Respects the disabled property of individual OPTIONs (shows them ‘grayed out’ or with strike-through font, and makes them un-selectable)
  3. Supports Option Groups (OPTGROUP elements)
  4. Supports style options such as border and margin in the SELECT and all sub-elements
  5. Supports dynamic add and delete of OPTION and OPTGROUP elements
  6. Supports the above in IE version 6 and above

EDIT: As noted by @Joel Coehoorn, items 3 and 5 above are currently supported in IE. They are included here to make sure they are not overlooked in a replacement widget.

  • 1 1 Answer
  • 4 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T20:36:54+00:00Added an answer on May 10, 2026 at 8:36 pm

    At last check IE6+ does support #3 and #5, and you can (mis)use OPTGROUP to work around most of the other items.

    You can do this by having an optgroup with no options inside it, like this:

    <optgroup label='--'></optgroup> 

    You can make the label anything you want, but the point is that you’ll end up with an item that looks like a normal option, but cannot be selected. That opens to the door to all kinds of fun:

    • You can disable specific items by adding them as optgroups
    • You can prevent selection changes by encoded all options but the current one as optgroups (use some other text key to indicate they are disabled, if you need to)
    • You can use blank, –, or &mdash; labels to indicated simple separators rather than whole groups.

    That accounts for most of #1 & #2 in your list, anyway- at least the functional points.

    The reason for ‘(mis)use’ is because this won’t pass most html validators. However, the trick does work on all major browsers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have code that adds a pre-determined HTML snippet into a pre-determined <div> element
Note that this is a follow-up question from my previous one: How to memorize
This question has been asked many times before but none of the previous ones
I got help for a previous problem/question, and just realized that the script I
I did read http://guide.couchdb.org/draft/security.html and and the previous question CouchDB Authorization on a Per-Database
Inspecting _utm.gif I've determined the Extensible Parameter utme is not being passed. I don't
I have a coordinate region that I have determined contains the limits of what
The Django Basic Inlines app renders a pre-determined template from a pseudo-HTML syntax, based
This IS NOT a Homework question! While building my current student database project I
Similar to my previous question about determining if all classes in a given namespace

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.