Bug Tracker

Modify

Ticket #9231 (closed bug: cantfix)

Opened 2 years ago

Last modified 14 months ago

Multiple selected options in IE6 are not working

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

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/

Change History

comment:1 Changed 2 years ago by anonymous

It should at least work, when using this in IE6: selectElement.val(arrayWithValues);

comment:2 Changed 2 years ago by timmywil

  • Priority changed from undecided to low
  • Status changed from new to open
  • Version changed from 1.6 to 1.3.2
  • Component changed from unfiled to manipulation

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/

comment:3 Changed 2 years ago by anonymous

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.

comment:4 Changed 23 months ago by rwaldron

  • Status changed from open to closed
  • Resolution set to cantfix

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.