私はMVC4アプリケーションに取り組んでいます
次のメニュー項目があります
<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>
ホーム以外のアイテムをクリックすると、css-class がアクティブに変わります。基本的に、メニュー項目の色を変更したいだけですどうすれば動的にできますか?