Solved

javascript drop select box with disabled option elements IE issue

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

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…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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

734 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