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

  • Home
  • SEARCH
  • 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
  • 0 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

Thanks to the help in a previous question , I've got the following code
This IS NOT a Homework question! While building my current student database project I
Is there a way to write a C code that allow us to determine
Assuming that you have determined that for a given niche case, neither TCP or
Every now and then I find web applications that have some sort of article
Of late, I've been hearing many good things about functional programming languages such as
I am writing code in Java that uses an unordered, rooted tree where each
This seems like a simple problem: I have a WF4 activity that guides the
I'm trying to get matches of single bracket followed by a non-space, but not
I have been practicing TDD and (some) XP for a few years now and

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.