Mostly every website contains a navigation menu so it's constantly great to make it so the guests or client on the website knows on which page or part of the website he is on. This can be proficient by including a "dynamic class" or "active class" to the menu thing that links to the page on which the guest or client is.
For this purpose we are making a navigation menu with the help of html just to explain how to add active class on the links.
With the help of above jQuery code when we click on any <li> ,a active class get append on the anchor tag with in it which makes its background-color green and it remove the active class from previously selected anchor .
0 Comment(s)