I am using the below code to render the bootstrap tab in my MVC application. All the scripts are loaded correctly. but still throwing tab undefined error.
<script src="@Url.Content("~/Scripts/jquery-1.8.3.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/bootstrap-tabs.js")" type="text/javascript"></script>
<ul id="myTab" class="nav nav-tabs">
<li class="active"><a href="#home" data-toggle="tab">Home</a></li>
<li><a href="#profile" data-toggle="tab">Profile</a></li>
</ul>
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade in active" id="home">
jhgh
</div>
<div class="tab-pane fade" id="profile">
mbjb
</div>
</div>
<script type="text/javascript">
$(function () {
$('#myTab a').click(function (e) {debugger
e.preventDefault()
$(this).tab('show');
});
});
</script>
Thanks,
Siva