Is the best way forward to just rewrite the HTML so that it uses DIV elements instead of UL and LIs? There's got to be a better way...
On Jul 15, 2:38 pm, Bill <bllfr...@gmail.com> wrote: > Leonardo, thanks very much for your reply. > > I've updated my code, so the third wrapper contains the following: > > <div class="wrapper"> > <h3>Plain ol' UL,slideDown()</h3> > <ul id="menu-1-fix"> > <li><div>One</div></li> > <li><div>Two</div></li> > <li><div>Three</div></li> > <li><div>Four</div></li> > <li><div>Five</div></li> > </ul> > </div> > > And the jQuery code: > > /** > * Fix... > */ > $("#menu-1-fix li div").click(function(e) { > $(this).slideUp(2000, function() { > $(this).parent().hide(-1).remove(); > }); > }); > > But the problem persists inIE. Anyone know when the bug will be > fixed? Could I get around the problem using the animate() command? > > Regards > > --Bill > > On Jul 15, 1:34 pm, Leonardo K <leo...@gmail.com> wrote: > > > > > You can put a DIV inside a LI and animate the DIV > > > <li> > > <div> content here </div> > > </li> > > > On Wed, Jul 15, 2009 at 16:31, Bill <bllfr...@gmail.com> wrote: > > > > Alright, so this *is* a bug: > > > >http://dev.jquery.com/ticket/3120 > > > > Anyone have any advice on a workaround ? > > > > On Jul 15, 12:15 pm, Bill <bllfr...@gmail.com> wrote: > > > > Hi all, > > > > > I posted a week ago about some odd behavior with slideUp() and > > > >slideDown() inIE6, 7, and 8 (the post is here: > > >http://groups.google.com/group/jquery-en/browse_thread/thread/1b4cda0... > > > > ). After several hours of further investigation, it appears that > > > > jQuery isn't properly animating LI elements. > > > > > I set up a simplified example here: > > > > >http://69.59.182.148:4080/test/07152009/index.html > > > > > The first two examples on this page show slideUp() andslideDown() on > > > > LI elements. In Firefox, Chrome, Opera, and Safari, clicking causes > > > > slideUp() orslideDown() animations that behave as expected. InIE6 > > > > and 7, slideUp() andslideDown() behave very differently. > > > > > The second two examples basically translate the unordered lists and > > > > list items into divs. slideUp() andslideDown() work as expected in > > > > these examples, even inIE6 and 7. > > > > > Is this a flaw in the slideUp()/slideDown() commands? > > > > > Regards, > > > > > --Bill