Solved

javascript drop select box with disabled option elements IE issue

Posted on 2007-11-30
4
1,857 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
  • 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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…

708 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now