Opened 14 years ago
Closed 14 years ago
#4195 closed bug (duplicate)
Cloning Option in IE
Reported by: | john | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.3.2 |
Component: | core | Version: | 1.3.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
From the mailing list:
when i clone one or more selected <option> from one <select> to another there are differences between IE and firefox.
in IE the cloned element (in the second <select>) stays selected. in firefox the cloned element is not selected.
so which one is correct?
the code:
$('#myselect option:selected').clone().appendTo($('#myselect2'));
Note: See
TracTickets for help on using
tickets.
This is a dup of #4193.