I don't know what's wrong with my markup here, but the tabs aren't toggling between core and bio when I click on the buttons. Can anyone help tell me where I've gone wrong? html: < div class = "background" > < section class = "tabstoggle_grid_container" > < input class = "tabstoggle" type = "hidden" name = "attr_sheetTab" value = "core" /> < div class = "core tab-buttons" > < button class = "tabs" type = "action" name = "core" > Core </ button > </ div > < div class = "bio tab-buttons" > < button class = "tabs" type = "action" name = "bio" > Bio </ button > </ div > </ section > < div class = "core" > Contents of core </ div > < div class = "bio" > Contents of bio </ div > </ div > < script type = "text/worker" > const buttonlist = ["core","bio"]; buttonlist.forEach(button => { on(`clicked:${button}`, function() { setAttrs({ sheetTab: button }); }); }); </ script > css: .charsheet input.tabstoggle [ value = "core" ] ~ div.core , .charsheet input.tabstoggle [ value = "bio" ] ~ div.bio { display : block; } please tell me it's a simple fix like i've forgotten a bracket or something haha