Thanks so much for this - it works great! I am wondering if it would be possible to have more than one button text (for example SHOW_MORE would be "Survey", "Information")? I have gotten numerous input texts, but when you click "show less" it just displays the first text again, regardless of what the original input is. I think this just requires more javascript knowledge than I currently have.
How do I create hide/show section of an entire page of text, images and or galleries in Squarespace (spoiler function/accordian/collapse)?
in Customize with code
Posted
Thanks so much for this - it works great! I am wondering if it would be possible to have more than one button text (for example SHOW_MORE would be "Survey", "Information")? I have gotten numerous input texts, but when you click "show less" it just displays the first text again, regardless of what the original input is. I think this just requires more javascript knowledge than I currently have.