Skip to main content

Bug Tracker

Side navigation

#9231 closed bug (cantfix)

Opened May 11, 2011 10:13AM UTC

Closed July 12, 2011 07:59PM UTC

Last modified March 14, 2012 06:35AM UTC

Multiple selected options in IE6 are not working

Reported by: n3croman@gmail.com Owned by:
Priority: low Milestone: 1.next
Component: manipulation Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:
Description

When creating <select> with multiple="multiple" and several <option> tags, some of them with selected="selected", in IE6 after adding the created element into DOM, only the last selected option is actually selected. I'm not sure, if it's just IE6 DOM problem, or it could be solved using some workaround in jQuery. It might be also related to this issue http://bugs.jquery.com/ticket/6159

Example: http://jsfiddle.net/jPKQz/1/

Attachments (0)
Change History (4)

Changed May 11, 2011 01:53PM UTC by anonymous comment:1

It should at least work, when using this in IE6:

selectElement.val(arrayWithValues);

Changed May 12, 2011 05:10PM UTC by timmywil comment:2

component: unfiledmanipulation
priority: undecidedlow
status: newopen
version: 1.61.3.2

This isn't a problem with attr or val, but being able to set multiple in IE6, which has been a problem for all versions of jQuery. http://jsfiddle.net/timmywil/jPKQz/9/

Changed May 13, 2011 11:38AM UTC by anonymous comment:3

Actually setting multiple using .attr("multiple", true) works for me in IE6 in some very specific scenarios, I should try to isolate the example from my code, where it's working. Maybe it could help implement proper setting of this attribute in jQuery.

Changed July 12, 2011 07:59PM UTC by rwaldron comment:4

resolution: → cantfix
status: openclosed