css change color background after click
I have a sidebar with links. If one of the links is clicked and they stay in that section, then I want the background color to stay yellow. If they click on another link, then new link background becomes yellow, but old link goes back to colorless state.
Sidebar nav is different for each section in webapp. Links in the sidebar differs and links maybe created dynamically from different section of webapps?
Is this only possible if you know the links before hand, so you can define in id CSS ?
I need something like gmail, chat is highlighted with blue background: