I am working on an MVC4 Application
I have a following Menu Items
<ul class="menu left">
<li>@Html.ActionLink("Home", "Index", new { Controller = "Home" }, new { @class = "active" })</li>
<li>@Html.ActionLink("About Us", "About", new { Controller = "Home" })</li>
<li>@Html.ActionLink("Services", "Services", new { Controller = "Home" })</li>
<li>@Html.ActionLink("Post Job", "Create", new { Controller = "JobPosting" })</li>
<li>@Html.ActionLink("Job Search", "Index", new { Controller = "JobPosting" })</li>
<li>@Html.ActionLink("Contact Us", "Contact", new { Controller = "Home" })</li>
</ul>
Now I want if I click on Items other than Home, its css-class changes to active. Basically I just want to change the color of the menu-item How can I make this dynamically?