
I've got one set of tabs on a sheet working fine: <input type="hidden" class="sheet-tabstoggle" name="attr_sheetTab" value="st" /> <div> <button type="action" name="act_st" style="background-color:#333333; color:#FFC90E; width:130px;" >Stats</button> <button type="action" name="act_ge" style="background-color:#333333; color:#FFC90E; width:130px;" >Gear</button> <button type="action" name="act_ab" style="background-color:#333333; color:#FFC90E; width:130px;" >Abilities</button> <button type="action" name="act_xp" style="background-color:#333333; color:#FFC90E; width:130px;" >XP</button> </div> <div class="sheet-st">Stats content</div> <div class="sheet-ge">Gear content</div> <div class="sheet-ab">Abilities content</div> <div class="sheet-xp">XP content</div> <script type="text/worker"> const buttonlist = ["st","ge","ab","xp"]; buttonlist.forEach(button => { on(`clicked:${button}`, function() { setAttrs({ sheetTab: button }); }); }); </script> /*Configure the tab buttons*/ .charsheet .sheet-st, .charsheet .sheet-ge, .charsheet .sheet-ab, .charsheet .sheet-xp { display: none; } /* show the selected tab */ .charsheet .sheet-tabstoggle[value="st"] ~ div.sheet-st, .charsheet .sheet-tabstoggle[value="ge"] ~ div.sheet-ge, .charsheet .sheet-tabstoggle[value="ab"] ~ div.sheet-ab, .charsheet .sheet-tabstoggle[value="xp"] ~ div.sheet-xp { display: inline; } How would I go about adding a second set of tabs that functions independently of this first set?