So what I am trying to do is link my loadout choice radio button to my DR boxes. There are 3 loadout choices and 3 DR Loadout boxes. I am trying to make them behave like tabs so that only the selected corresponding DR box is displayed. Here is the HTML for the button <div class="sheet-box sheet-loadouts">
<div class="sheet-table">
<div class="sheet-header">
<div class="sheet-cell sheet-col0"><input type="radio" value="1" name="attr_loadoutchoice" checked="checked" class="sheet-loadoutchoice sheet-loadoutchoice1"/></div>
The HTML for the DR Loadout Box <div class="sheet-loadoutchoice-content sheet-loadoutchoice1">
Bunch of content here
</div> The CSS for to make it happen with my errors /* =======DR TABS =========== */
input.sheet-loadoutchoice .sheet-loadoutchoice1:not(:checked) ~ .sheet-loadoutchoice .sheet-loadoutchoice1,
input.sheet-loadoutchoice .sheet-loadoutchoice2:not(:checked) ~ .sheet-loadoutchoice .sheet-loadoutchoice2,
input.sheet-loadoutchoice .sheet-loadoutchoice3:not(:checked) ~ .sheet-loadoutchoice .sheet-loadoutchoice3 {
display: none;
}
Any help would be appreciated