I am trying to create a CSS style to an element based on radio button check status. The following is the HTML code.
<div>
<input class="assaf" id="radio3" type="radio" name="radio" value="3" />
</div>
<label for="radio3">
<span><span>
</span></span>
Option 3
</label>
The problem is, I can NOT write a CSS style so label and its children style are set based on radio button status (checked or not).
Removing the first div, I can do something like this which works fine.
input.assaf[type=radio]:not(old):checked} + label > span > span
But, I have a case that must have this div, I tried something like the following but it does not work!!
div > input.assaf[type=radio]:not(old):checked} + label > span > span
Any idea?