The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript [Solved] Issue with jQuery slideToggle 'display: none' Re: Issue with jQuery slideToggle ‘display: none’


The problem with jQuery’s Toggle is indeed as you pointed out that it add’s an inline style to the element which does not get removed untill the toggle is triggered again,

Try adding the display none/block as an extra class in the media query, then toggle that class with your button instead,