I'm using this solution: Is it possible to change a fieldset's background-color on input:focus?
... to change the background of a fieldset as a user moves through a form. On a basic level this works great. On a more advanced level, I'm having trouble making this work on input fields that are nested inside of a conditional div. In other words, the inputs are no longer siblings to the div in his example.
To give you a visual, this works:
<fieldset>
<input>
<div></div>
</fieldset>
But this does not:
<fieldset>
<div class="conditional">
<input>
</div>
<div></div>
</fieldset>