Hi Larry,
Have you tried something like this? (untested in IE) :
$('#select_box_from :selected').remove().appendTo('#select_box_to');
--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Apr 13, 2007, at 11:23 AM, Larry Garfield wrote:
Hi folks. I'm trying to move an option element from one select box
to another. I have it working in Firefox now, with a simple append:
$('#selectbox_to').append($('#selectbox_from [EMAIL PROTECTED]'));
That works great everywhere except, of course, IE. In IE, it does
actually move the option but doesn't redraw the "from" select box.
The from select box ends up showing the entry after a selected item
twice, and doesn't redraw the rest of the list until I select it to
force a redraw. What's weirder, it seems to happen only on some
select boxes. If I reverse the process and move the option from
the "to" select back to the "from" select, there is no redraw problem.
Has anyone seen this? Can anyone recommend a workaround for IE
sucking? :-) Thanks.
--Larry Garfield