well I have this code.
<ul>
<li class="parent"> without child</li>
<li class="parent"> without child</li>
<li class="parent"> parent with child </li>
<div class='inner'>
<li class="child"> child</li>
</div>
<div class='inner'>
<li class="child"> child</li>
</div>
<div class='inner'>
<li class="child"> child</li>
</div>
</ul>
It is custom php template so I cant change structure of the code. So, I want to catch parent li and change color, when child is active. (Child gets class .active when it's active.) I dont even get how to do it. I was thinkin .next() and then .slice() but dont think that solves it