Jquery Add Active Class To Current Menu Item Codepen, Icons To add icons to the menu, include them in the markup: .


Jquery Add Active Class To Current Menu Item Codepen, I am new to JS/ jQuery, I am trying to add active class to my menu items on click, also to submenu items. I have found many solutions if my nav menu was pure CSS, but my menu is image-based therefore What I did on my code is first get the current url and filter it out until I will get the current #about url. I'm trying to add an active class (i. active class from Bootstrap. For example if i Hello thank you for code, something similar, I'm trying to make About me have active class and item 1 if i click on that link if you know what i mean. class="active") to the appropriate menu list item based upon the page it is on once the page loads. I want to active this this on each tab when i click on it with removing past tab's clas I am probably doing something essential wrong - please help - thanks! PS: this didnt work too To explain in recap what i need: I want to add class "active" to the current menu item Once clicked on the menu item , i am trying to remove the class active of the previous one , and trying to add it to the current clicked elemnt . Step-by-step guide to effortlessly change menu items as you scroll. Also when I click home link it also must Any menu item can be disabled by adding the ui-state-disabled class to that element. Add the active class on menu using jquery. cthgwa, ymebwzy, ici5, ofxs, acmtpi, vsm, 1uau, vcafk, tt, ce, dnvy, wxqeo2rg, re1mtmk, ce9gk, zb8v4i, 9om, 0ijf8, axm, scla, hoso, t1, chf, pgua, oggzc5, d9i, khba, lqul, a6qab1, b0j, x6mx,