Solved

javascript drop select box with disabled option elements IE issue

Posted on 2007-11-30
4
1,862 Views
Last Modified: 2008-02-01
Disabling options is not supported by IE, so I need some javascript to disable these two options in select box, like in Gmail.
<select name="select">
  <option disabled="disabled">Menu</option>
  <option>-- select 1</option>
  <option>-- select 2</option>
  <option disabled="disabled">Second menu</option>
  <option>-- select </option>
  <option>--select2</option>
</select>

Open in new window

0
Comment
Question by:zvucini
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 19

Accepted Solution

by:
erikTsomik earned 500 total points
ID: 20383127
Check out this site that is exactly what you were looking for
http://www.lattimore.id.au/2005/07/01/select-option-disabled-and-the-javascript-solution/
0
 
LVL 2

Author Comment

by:zvucini
ID: 20383248
That is not exactly what I was looking for, in this example disabled options are still selectable, correction is made after selection, i need prevention of selecting, like in gmail.
0
 
LVL 2

Author Comment

by:zvucini
ID: 20383269
My fault, it's just like in gmail, tnx.
0
 
LVL 19

Expert Comment

by:erikTsomik
ID: 20383278
You welcome, also look at the samples . That why I said it just like what you need
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question