Home › Forums › JavaScript › [Solved] Issue with jQuery slideToggle 'display: none' › Reply To: [Solved] Issue with jQuery slideToggle 'display: none'
December 12, 2015 at 8:57 am
#235813
Participant
Thank you guys for this nice piece of code, it’s still fresh.
I made a little update adding a few features:
- The accordion now works with variable content heights by using max-height.
- Opening an accordion section automatically closes the other ones.
- Window scrolls to the top of the opened accordion section by using anchors (might be useful on mobile devices).
Here’s the new jsfiddle, based on Podders: