?
Solved

javascript drop select box with disabled option elements IE issue

Posted on 2007-11-30
4
Medium Priority
?
1,874 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 2000 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
This article discusses how to implement server side field validation and display customized error messages to the client.
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…
Suggested Courses

801 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