Closed Thread Icon

Topic awaiting preservation: optgroup behavior in IE (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=22606" title="Pages that link to Topic awaiting preservation: optgroup behavior in IE (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: optgroup behavior in IE <span class="small">(Page 1 of 1)</span>\

 
Yossi Admon
Bipolar (III) Inmate

From: Israel
Insane since: Nov 2001

posted posted 07-18-2004 14:35

Hi,
I tried to use optgroup and some other options attribute in IE6.
It looks like the optgroup title and the disabled attribute (as well with the title attribute and display style on the option) is not working on IE6.
Do you know any workarown/solution in IE?
Following is the code i've used (copied from http://www.w3schools.com/tags/tag_optgroup.asp)

code:
<select>
<optgroup title="Swedish Cars" label="Swedish Cars Title">
<option disabled value ="volvo">Volvo</option>
<option style="display:none" value ="Invisible">Invisible Item</option>
<option value ="saab" title="This is a single option title">Saab</option>
</optgroup>
<optgroup label="German Cars" disabled>
<option value ="mercedes">Mercedes</option>
<option value ="audi">Audi</option>
</optgroup>
</select>



Regards,
Yossi Admon

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 07-18-2004 14:57

indeed... my html reference doesn't list optgroup as supported by IE - in any version.

Yossi Admon
Bipolar (III) Inmate

From: Israel
Insane since: Nov 2001

posted posted 07-18-2004 15:02

It is partly supported in IE6 (have no less version to check the issue) at least from the label perspective.

BillyRayPreachersSon
Obsessive-Compulsive (I) Inmate

From: London
Insane since: Jul 2004

posted posted 07-19-2004 11:28

According to MSDN:

http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/objects/optgroup.asp

The "optgroup" element is only available as of IE6.

The page shows the disabled attribute is valid, although it mentioned nothing about a "title" attribute, si I'm guessing this is not valid.

Hope this helps,
Dan

« BackwardsOnwards »

Show Forum Drop Down Menu