
Been beating my head against a stupid problem for way to long. Hoping somebody can just give me the answer. I have character sheet that I am modifying that was originally the pathfinder neceros sheet.
It has a section of checkboxes,and when a checkbox is selected it turns blue. I added a few dropdown lists to this section as well. It would be nice if when these dropdown lists do not have a value zero - none. They turned blue.
html <span class="sheet-table-data sheet-left" style="width:20%;">
<div class="sheet-labeledDropdown" title="@{condition-Darkness}"><label><b>Vision</b></label>
<select title="-2/-4 Penalty to all sight based tests due to Darkness, Blindness or Dazzling." name="attr_condition-Darkness">
<option value="0" selected><b title="No Darkness Blindness or Dazzled impact on signt based actions."> None</option> <option value="-2"><b title="-2 Penalty to all sight based tests due to Darkness, Blindness or Dazzling."> Partial</option>
<option value="-4"><b title="-4 Penalty to all sight based tests due to Darkenss, Blindness or Dazzling."> Full</option>
</select>
</div>
</span>
I thought that the following css ought to do something (if not work, at least do something) .sheet-labeledDropdown select[value="0"] { background-color: #4a6486;color: #FFF; } But nothing is happening when I change the value of the dropdown box. So anyway, can anybody give me any pointers on what I can do from here to get back on the right track?
Thanks.