In my php web project, I want to add a CSS class (.active) to the current url route when the user clicks on the navigation menu bar, i.e. my navigation menu.
<li><a href="http://localhost:8000/OhdyDaran')">Designation</a></li>
<li><a href="http://localhost:8000/gallery">Gallery</a></li>
<li><a href="http://localhost:8000/Introduction">introduction</a></li>
<li><a href="http://localhost:8000/home">Home</a></li>
How to Make an Application.active CSS class with Jquery or JS, after page refresh, is the link css applied?