![]() |
I was trying to make class="nav-link" active every time I clicked the navbar navigation. So, for example, I have 5 navbar navigation. Home, About, Contact, Comic, and People. When I click the Home, the class of class="nav-link" will be active. So, it will become class="nav-link active". Then, when I click another navbar navigation, for example About, the class="nav-link active" at Home navbar navigation, will disappear and will appear again in the About navbar navigation. So the class from the navbar navigation of About will be class="nav-link active" while Home become class="nav-link" again. It's kinda hard to explain but I hope I explain it correctly
![]() Screenshots: https://i.imgur.com/I16sK93.png https://i.imgur.com/RvgJmqg.png |
Messages In This Thread |
How to make nav-link active - by Tokioshy - 05-05-2024, 06:41 AM
RE: How to make nav-link active - by InsiteFX - 05-05-2024, 10:41 PM
RE: How to make nav-link active - by Tokioshy - 05-06-2024, 06:19 AM
RE: How to make nav-link active - by luckmoshy - 05-05-2024, 11:26 PM
|