Change Bootstrap navbar theme

2

Hello,

I searched a lot on the internet for a method that I could change to Bootstrap's navbar theme at the click of a button.

Navbar when the user visited the site:

Whentheuserclicksthebutton:

Thank you in advance.

    
asked by anonymous 30.04.2016 / 07:48

1 answer

3

You can use the class navbar-inverse which does the effect you are looking for.

Joins an event handset that removes this class on the first click.

An example would look like this:

$('.navbar-inverse').on('click', function(){
    $(this).removeClass('navbar-inverse');
});

Example: link

    
30.04.2016 / 10:16