Basic jQuery slideUp and slideDown driving me mad!

后端 未结 10 878
情深已故
情深已故 2020-12-09 19:06

my jQuery skills are pretty good normally but this is driving me mad!

It\'s a fairly simple accordian I\'ve coded up from scratch. Using jQuery 1.3.2 so there should

10条回答
  •  被撕碎了的回忆
    2020-12-09 19:53

    I must admit I've found my own dynamic solution now.

    http://www.mizudesign.com/jquery/accordian/basic.html should be fixed.

    It's very simple really - just adds the height using .css before hiding the div. Works a treat :)

    $("#PlayerButtonsContent div").each (function() {
    $(this).css("height", $(this).height());
    });
    
    $("#PlayerButtonsContent div").hide();
    

提交回复
热议问题