[jQuery] Re: Accordion, fieldset and selectors question

2009-11-27 Thread Bruce MacKay
Excellent Adriana - thanks very much - also for quietly pointing out that I'd forgotten the return false bit. Cheers/Bruce On Nov 27, 2:45 pm, Adriana adipa...@yahoo.com wrote: Hi Bruce, Try this:     $('.accord h6').click(function() {         $(this).toggleClass('expand_group').siblings

[jQuery] Re: Accordion, fieldset and selectors question

2009-11-26 Thread Adriana
Hi Bruce, Try this: $('.accord h6').click(function() { $(this).toggleClass('expand_group').siblings ('h6.expand_group').removeClass('expand_group'); $(this).next('fieldset').slideToggle('fast').siblings ('fieldset:visible').slideUp('fast'); return false; });