Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

175
Views
parent and child in separate sections

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

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!