Hey guys! So I need to select what elements to display within a container in my custom character sheet using two input criteria. The HTML is dummied up below... <input type='hidden' value="" name="attr_veRegion" class="sheet-veregchk">
<input type='hidden' value="" name="attr_vItmLoc01" class="sheet-velocchk">
<div class="sheet-div1">Some content</div>
<div class="sheet-div2">Some different content</div>
<div class="sheet-div3">Blah Blah</div>
<div class="sheet-div4">Four score and seven years ago...</div> What I need is to select by a combination of these two hidden input criteria in a manner lamely demonstrated by bad pseudo code below. /* Conceal the items at start */
.sheet-div1,.sheet-div2,.sheet-div3,.sheet-div4{
display:none;
}
/* The Reveal */
.sheet-veregchk[value="5"] as well as .sheet-velocchk[value*="Superstructure"] then ~ .sheet-div1{
display:block;
} Anyone with better knowledge of tweaking CSS have any ideas? Thanks in advance for your help! Michael