Completed

Colocar un class=active" a los <li> y sus parents, según la url

Published on the September 16, 2021 in IT & Programming

About this project

Open

Tengo un nav en HTML con varios niveles y necesito colocarle un class="active" al <li> y sus parents. Creo que se hace mediante JS o JQuery.

Project overview

He encontrado esto: https://gist.github.com/johnmorris/b522257ae204d95ebcbe que aplica para un nav simple, sin submenues. En el adjunto está el código de mi nav. Necesito que sirva tanto para los links que no tengan parents, como para los que tengan "x" cantidades.

Category IT & Programming
Subcategory Web development
What is the scope of the project? Small change or bug
Is this a project or a position? Project
I currently have I have specifications
Required availability As needed
Roles needed Developer

Delivery term: Not specified

Skills needed

Other projects posted by C. A.