Thread:Demotivator/@comment-25346948-20161104122814

Hello,

My html/css knowledge is quite limited; I was wondering whether it is possible to edit the Show/Hide Template so that the "Button name" is also part of the string "class" of the button and part of the string "id" of the hidden content:

Show/Hide Spoiler This is a spoiler.

which would give

Show/Hide Spoiler This is a spoiler.

The utility being that clicking a spoiler button would only reveal the relevant hidden content:

Show/Hide Spoiler This is an other spoiler.

gives

Show/Hide Spoiler This is an other spoiler.  