Board Thread:Support Requests - Getting Technical/@comment-3555624-20200303213803/@comment-3555624-20200305223456

Andrewds1021 wrote: You will probably want this instead: This code works perfectly, thanks for helping to fix it. There is no need for the second CSS rule. Also, I noticed that you are setting the collapsed box's id to a fixed value. Note that if you intend to use more than one instance of this template on a page, you should set the id to something unique for each instance. On a given page, there is only supposed to be one element with a given id. As such, most browsers only pay attention to the first one and ignore any other occurrences of the id. In your case, it would result in the lack of ability to expand the additional headers as well as the button for those additional headers toggling the first header.

Noted. While I am not aware of any instances on my wiki where the template would need to be used more than once on a page, this is definitely helpful to know. Thanks!