I'm using:
[spoil]{TEXT}[/spoil]
Code: Select all
<div class="spoiler text-center">
<div class="spoiler-header">
<button class="btn center-block" onclick="var a=parentNode.nextSibling.style,b=firstChild.style,c=lastChild.style;b.display=a.display;a.display=c.display=(b.display)?'':'none'"><span>Show</span><span style="display:none">Hide</span></button>
</div>
<div class="spoiler-content" style="display:none">{TEXT}</div>
</div>
The Spoiler appears perfectly but when I click "Show", the page auto-refresh and I lose all my text.