Widget:Collapsible Script

From SWGoH Wiki
Jump to navigationJump to search

This widget only holds the script to make the 2nd child element of an element visible or hidden when a button is clicked. This script can be used with Widget:Collapsible Button

//Names in this example are not required and are only used as a reference
<div name="parent">
  <span name="button-parent child-1"><button></button></span>
  <div name="child-2 hidden"></div>
</div>