I have set up my navigation tabs using Bootstrap 3 in the following way:
<ul class="nav nav-tabs pull-right projects" role="tablist" style="margin-top:20px;">
<li class="active"><a role="tab" data-toggle="tab" href="#progress">In Progress</a></li>
<li><a role="tab" data-toggle="tab" href="#done">Done</a></li>
</ul>
<div class="tab-content">
<div id="progress" class="tab-pane fade active in">
Content for "Progress" tab goes here
</div>
<div id="done" class="tab-pane fade">
Content for "Done" tab goes here
</div>
</div>
Here are the JavaScript files I am using:
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha/js/bootstrap.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
Although the tabs work fine when the page loads, I am facing an issue. When I click on the second tab and then try to switch back to the first one, it does not work. Can someone please help me identify what is wrong with my code?