Within my ASP.NET MVC web application, I have the following code snippet displaying two tabs while utilizing Bootstrap 2.0.2:
<ul class="nav nav-tabs" id="myTab">
@if(Model.hasRacks)
{
<li> @Ajax.ActionLink("Show Related Racks", "CustomerRack","Customer",
new {customerID = Model.AccountDefinition.ORG_ID},
new AjaxOptions {
InsertionMode = InsertionMode.Replace,
UpdateTargetId = "detail" ,
LoadingElementId = "progress",
OnSuccess="detailsuccess"
}
)
</li> }
@if(Model.hasServer)
{
<li >@Ajax.ActionLink("Show Related Servers", "CustomerServer","Customer",
new {customerID = Model.AccountDefinition.ORG_ID},
new AjaxOptions {
InsertionMode = InsertionMode.Replace,
UpdateTargetId = "detail" ,
LoadingElementId = "progress",
OnSuccess="detailsuccess",
}
)</li>}</ul>
I am attempting to apply the class="active"
when a tab is clicked by the user. Currently, the active tab is not highlighted. Can anyone provide guidance on how to achieve this?