1

here is my html

<div>
    <!-- Nav tabs -->
    <ul class="nav nav-tabs" role="tablist">
        <li role="presentation" class="active"><a href="#eth0:0" aria-controls="home" role="tab" data-toggle="tab">Home</a></li>
        <li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">Profile</a></li>
        <li role="presentation"><a href="#messages" aria-controls="messages" role="tab" data-toggle="tab">Messages</a></li>
        <li role="presentation"><a href="#settings" aria-controls="settings" role="tab" data-toggle="tab">Settings</a></li>
    </ul>
    <!-- Tab panes -->
    <div class="tab-content">
        <div role="tabpanel" class="tab-pane active" id="eth0:0">h</div>
        <div role="tabpanel" class="tab-pane" id="profile">p</div>
        <div role="tabpanel" class="tab-pane" id="messages">...</div>
        <div role="tabpanel" class="tab-pane" id="settings">...</div>
    </div>
</div>

Why is that my home tab not working? After page reload,the home tab is clicked and its content is shown but after i click on other tabs and then again click on the home tab, it does not work. How can I fix this?

Milap
  • 6,915
  • 8
  • 26
  • 46

1 Answers1

0

This may not be the very best answer but it worked for me.

First of all I removed the ':' from the href and id via regex and now it works.