I THINK I figured this one out. I was creating the new select box dynamically
by cloning the former, like so:
var unselected = selected.clone(true);
unselected.attr('name', 'unselected_' + unselected.attr('name'));
For whatever reason, when I did that IE wasn't removing elements from the new
I'll have a look at the code there, thanks. I think I have narrowed down the
cause of the problem, though. IE *really* doesn't like that I'm adding a
select box to the page dynamically, and is therefore pouting by refusing to
redraw it.
As the wiki says, IE is a sadist. :-(
--Larry Garfi
Check this out: http://200.169.53.89:8080/WebApplication/Test/teste.html
I'm using the plugin jquery.select.js from
http://www.texotela.co.uk/code/jquery/select/, but I modified some lines of
the code.
On 4/13/07, Larry Garfield <[EMAIL PROTECTED]> wrote:
Thanks Karl! I'm afraid that's not
Thanks Karl! I'm afraid that's not working either. I'm actually manipulating
a multi-value select box, not single value. That's where the redraw problem is
happening.
Current snapshot of what I'm doing is here:
http://www.garfieldtech.com/jsdemo/pullbox/test1.html
The behavior in Firefox
On Apr 13, 2007, at 12:22 PM, Larry Garfield wrote:
Not yet. Honestly, I kept having problems with the :selected style
syntax. It never matched elements for me. That's why I switched
to using [EMAIL PROTECTED], which someone in #jQuery suggested (I don't
recall who). I'll give that a tr
Not yet. Honestly, I kept having problems with the :selected style syntax. It
never matched elements for me. That's why I switched to using [EMAIL
PROTECTED], which someone in #jQuery suggested (I don't recall who). I'll give
that a try this afternoon and see if it works. :-)
--Larry Garf
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.
7 matches
Mail list logo