Without using JavaScript, I want something to happen only when checking two checkboxes. So something like
#one:checked && #two:checked ~ p {
color: red;
}
for
<input id="one" type="checkbox" name="check"><label for="one">One</label>
<input id="two" type="checkbox" name="check"><label for="two">Two</label>
<p>Thing</p>
which obviously does not work. Is there a way to define both checkboxes without using JS?
source
share