Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

javascript drop select box with disabled option elements IE issue

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
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-…
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…

636 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