Results 1 to 2 of 2

Thread: I'm trying to create a select box in a form with unselectable options

  1. #1
    Join Date
    May 2007
    Location
    England, UK
    Posts
    235
    Thanks
    3
    Thanked 6 Times in 6 Posts

    Default I'm trying to create a select box in a form with unselectable options

    Help...

    I'm trying to create a select box in a form with unselectable options.
    It works fine in Mozilla but not IE.
    This is how i'm coding it...
    HTML Code:
    <form>
      <select>
         <option disabled="disabled">UNSELECTABLE OPTION</option>
         <option value="something">SELECTABLE OPTION 1</option>
         <option value="something">SELECTABLE OPTION 2</option>
         <option value="something">SELECTABLE OPTION 3</option>
      </select>
    </form>
    I have seen it done using the <OPTGROUP> tag but just gives me a heading LIKE THIS which i'm unable to change the style of using css.

    Any suggestions?

  2. #2
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    Actually the disabled option in select object have some kind of bug in IE. You can read more details about the problem in the following articles. The article even propose some solution for the problem.

    Article One

    Article Two

    Hope this will help you.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •