I'm trying to hide or show a section in a question I posted on Stack Overflow, similarly to how you can expand a section in the advanced help section (see image).
I've tried to figure this out on my own. However, every search on hiding and displaying returns something on hiding or displaying HTML elements. The same is true for expanding/contracting and every other synonym I could think of. I went through the two pages of top rated questions (presuming they would be the longest and have sections that could be hidden or displayed) in the hopes of finding a post that did it, so I could look in the edit section and see the code they used, but I couldn't find an example. Could someone please let me know how this is done (and hopefully this will be of some use to a future user).