XWiki: show / hide DIV
{{velocity}}
{{html}}
<div id="DIV ID" class="">
This Box will be hidden if you click on the box below!
</div>
<div onclick="toggleClass($('DIV ID'), 'hidden')">
Show/Hide the box!
</div>
Or alternatively the following one to keep the box hidden when page loads:
<div id="DIV ID" class="hidden">
This Box will be hidden if you click on the box below !
</div>
<div onclick="toggleClass($('DIV ID'), 'hidden')">
Show/Hide the box!
</div>
{{/html}}
{{/velocity}}
Source: https://snippets.xwiki.org/xwiki/bin/view/Extension/Show%20Hide%20DIV
No comments to display
No comments to display