Streaming live at 10am (PST)

DIV Toggle hide and show


What would be the preferred method to create a toggle. I would like to have several text headings that show further content so I can compact some of my secondary navigation.
hope that makes sense. Basically i need to be able to have some content that can be toggled by clicking a text link, that content may also contain links.
Thanks !


You're welcome. Donate on PayPal if you like my work smile info at my profile stuck_out_tongue


Thanks for that, I am trying now. Is there a way for the page to remember the toggle state on reload?


You could try with cookies. You can set a cookie for open and on load check if it's in browser cache and open or close the toggled box.


That's awesome @bartekkustra, thanks!