Skip to content
Advertisement

how to set Bootstrap navbar active class in one page website in Laravel 5.5

I am looking for solutions, but can’t really understand. I’m new in Laravel and I want a simple instruction on how to set the active class in the bootstrap navbar on a one-page website.

Here’s what I’ve done so far, but can’t get it done:

JavaScript

Advertisement

Answer

You can try like this using jQuery:

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement