Hello,
i use sections on my pages that expand and collapse.
To open/close all sections at once I use the following macro:
## @noparams
<button name="toggleAll" id="toggleAll" type="button">expand/collapse</button>
<script type="text/javascript">
AJS.toInit(function ()
{
AJS.$('#toggleAll').click(function()
{
jQuery(".expand-control").each(function(){ jQuery(this).trigger("click");})
});
});
</script>
Now I want 2 single buttons where one opens and one closes the sections. Can someone please help me get this done?
Thank you!