Looking at this website:
How to get an element and remove any class = Selected and will add it to the right link? The way in which when the history, model and links like this will be written, it will be clicked on.
The following code should be directed to your case.
// Click on a link inside the sub-navigation list $ ('# sub-navigation' A ') (function () (first) with an active $$ (' # sub-navigation led.Selated ') Remove the selected category. RemoveClass ('selected'); // Then find the parent of the clicked element and select the square $ (this) .Parent ('Li'). AddClass ('selected');}) ;
(This is checked on your example page and works as expected.)
Comments
Post a Comment