I am trying to add two sections to a website both being collapsible, with one being collapsed by default. Combined with a button that if pressed collapses the other section and uncollapses the original one.
I have this collapsible-class as baseline: https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_collapsible
Could someone point me in the right direction of how to modify the script so it acts like I explained?
Thanks!
Aucun commentaire:
Enregistrer un commentaire