pab schrieb:
$(document).ready(function(){

        $(".accordion h2:first").addClass("active");
        $(".accordion p:not(:first)").hide();

        $(".accordion h2").click(function(){

          $(this).next("p").slideToggle("slow")
          .siblings("p:visible").slideUp("slow");
          $(this).toggleClass("active");
          $(this).siblings("h2").removeClass("active");

        });

});



accordion doesn't work with more than one paragraph per heading
if any heading has more then one paragraph it will only display one of
them, i tried giving them classes, that didn't work...came close but
no go....


if anyone can help that would be great.


* ONE WAY I MADE THIS WORK IS WITH BR TAGS...WHICH ARE A BIG NONO.
also br tags don't help oif you have an image ..so yeah
Support for multiple content elements (paragraphs here) was removed, making the plugin much simpler to use and much more stable in regards to animations.

There are other options: http://docs.jquery.com/UI/Accordion#What_this_isn.27t

Jörn

Reply via email to