2006/9/9, Maison Dominic Germain <[EMAIL PROTECTED]>:
> Hi Franck,
>
Hi Dominic,
> I start using your "Accordion Menu" last week. It's very kewl! But
> with the the latest jquery release (rev 249), it does not work more
> than one time...
>
jQuery now behaves differently than before when you query $('div',
this.parentNode). It now returns 2 elements (correct) so slideDown is
called twice and running never returns to 0!
To fix it, replace
var p = $('div', this.parentNode);
with
var p = $(this).siblings('div');
I updated the example on http://fmarcia.info/jquery/accordion.html too
(with rev. 288).
Thanks.
Franck.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/