Adding active class to current page in nav with jQuery
问题 I'm trying to add the 'active' class to the current page's nav link in the header. I made some progress, but I'm running into a small bug, and would appreciate some help. I know the answer is quite obvious, however, I'm new to jQuery/Javascript and I'm having trouble finding it on my own. Here's my nav HTML structure: <nav class="navbar navbar-expand-lg navbar-dark fixed-top" id="nav"> <ul class="navbar-nav ml-auto"> <li class="nav-item"> <a href="/" class="nav-link">Me</a> </li> <li class=