0
I have a side menu that when the user clicks changes the color of a selected item in the menu through a javascript code, however when an update occurs on the screen the class is removed. Would anyone have any tips on how to leave with the selected color after screen update?
I wanted you to have the same behavior https://blackrockdigital.github.io/startbootstrap-sb-admin-2/pages/index.html
var selector2 = '.menu-section-list li';
$(selector2).on('click', function () {
console.log("s");
$(selector2).removeClass('active');
$(this).addClass('active');
});
gives a read here: http://stackoverflow.com/questions/30060155/saving-website-styles-in-cookies
– Vitor Adriano