Making slideToggle() elements collapsed by default in jQuery

后端 未结 4 1577
遇见更好的自我
遇见更好的自我 2020-12-29 03:29

I have a set of divs that I want to make collapsible/expandable using jQuery\'s slideToggle() method. How do I make all of these divs collapsed by

4条回答
  •  醉酒成梦
    2020-12-29 04:03

    You can start your elements with style="display: none;" and slideToggle() will take it from there.

提交回复
热议问题