there you go, all nicely in a button
HTML Code:
<div class="spoiler">
<input type="button" class="button" onclick='
if(this.nextSibling.nextSibling.style.display =="none"){
this.nextSibling.nextSibling.style.display="block";
this.value="Hide "+this.nextSibling.nextSibling.nextSibling.firstChild.nodeValue;;
}else{
this.nextSibling.nextSibling.style.display="none";
this.value="Show "+this.nextSibling.nextSibling.nextSibling.firstChild.nodeValue;
}
' value="Show potatoes"/>
<span style="display:none;" class="content">{param}</span><div style="display:none;">{option}</div>
</div>
^ NO WHITESPACE HERE!: {param}
</span><div style="dis..
example (accept university certificate)
also, i cannot see the condition you are using in case of empty bbtag attribute so figure yourself. you add it only to one place where {option} is