I'm implementing a spoof bbcode for a phpbb forum, which uses Bootstrap and jQuery in the theme.
The code is this:
<div class="panel-group">
<div class="panel panel-warning">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" href="#collapse1">SPOILER!</a>
</h4>
</div>
<div id="collapse1" class="panel-collapse collapse">
<div class="panel-body">{TEXT}</div>
</div>
</div>
I have doubts, since the bbcode code will be the same for every spoiler block and so apparently I can not use the id for the collapse1
element, since any spoiler in the topic will use that same id. p>
The question then is: how do I "trigger" a collapsable pane without using an id?
Thank you very much!