dimanche 29 novembre 2015

Laravel - How to open the third tab in a page

I have 4 tabs in my user view.

When the page loads, how do I make my view display the third tab as active?

I am using Bootstrap :-

<div>
<ul class="nav nav-tabs" role="tablist">
   <li role="presentation" class="active"><a href="#home" 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>


<div class="tab-content">
   <div role="tabpanel" class="tab-pane active" id="home">Home</div>
   <div role="tabpanel" class="tab-pane" id="profile">Profile</div>
   <div role="tabpanel" class="tab-pane" id="messages">Messages</div>
   <div role="tabpanel" class="tab-pane" id="settings">Settings</div>
</div>

</div>



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire