skip to Main Content

Html – How to toggle existing class with JavaScript

I have a navbar with Bootstrap icon inside the anchor tags Here's my code: <li class="nav-item"> <a href="#" class="nav-link"> <i class="bi bi-house"></i> </a> </li> <li class="nav-item"> <a href="#" class="nav-link"> <i class="bi bi-heart"></i> </a> </li> <li class="nav-item"> <a href="#" class="nav-link"> <i…

VIEW QUESTION
Back To Top
Search