$(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 thanks