• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

disabled property does not work in IE

Explorer ,
May 09, 2012 May 09, 2012

Copy link to clipboard

Copied

I want to disable the box from the option in the menu, not the select itself.

This code is worked on FF but not on IE.  Is there the way to have the option disable work on IE? or make it ready only?

  i also try to change the gray color from the disable using css but still not work on IE:

<select name="re">

<cfloop query="qry">

<option value="#qry.re_id#" disabled >#qry.re_name#

</option>

</cfloop>

</select>

thanks

kt

TOPICS
Getting started

Views

1.0K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 10, 2012 May 10, 2012

Copy link to clipboard

Copied

First, you are not using the correct syntax to disable your options.  A google search on "html input disable" will lead you to the correct syntax.

Next, you say that you do not want to disable the select, but you are attempting to disable all the options.  That seems very odd.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 12, 2012 May 12, 2012

Copy link to clipboard

Copied

LATEST

As Dan says, be aware that the loop implies each option element will have a disabled attribute. Since you have to output, use the cfoutput loop (update: unless, of course, the code you've shown is already within the cfoutput tag):

<select name="re">

<cfoutput query="qry">

<option value="#qry.re_id#" disabled >#qry.re_name#

</option>

</cfoutput>

</select>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation