I am having same problem as mentioned here. I have form on my Add
tab. and listing on my Manage
tab. If I submit the form from Add
tab the message should display on that tab only. It should not go to the Manage
tab which is active by default.
I am trying to implement that the code of solution mentioned in the link above in my tab menus but its not working.
<ul class="nav nav-tabs mb-4" id="custom-content-below-tab" role="tablist">
<li class="nav-item">
<a class="nav-link " id="manage-tab" data-toggle="pill" href="#custom-content-below-manage" role="tab" aria-controls="custom-content-below-manage" aria-selected="true">Manage</a>
</li>
<li class="nav-item">
<a class="nav-link " id="create-tab" data-toggle="pill" href="#custom-content-below-add" role="tab" aria-controls="custom-content-below-add" aria-selected="false">Add</a>
</li>
</ul>
<div class="tab-content" id="custom-content-below-tabContent">
<div class="tab-pane fade " id="custom-content-below-add" role="tabpanel" aria-labelledby="create-tab">
//manage tab content
</div>
<!-- /.create-tab -->
<div class="tab-pane fade " id="custom-content-below-manage" role="tabpanel" aria-labelledby="manage-tab">
//add tab content
</div>
</div>
Actually i don't understand the code of solution from link given. what is $tabName
taken for. Still I tried. But its not showing the contents and menus are not working properly.
Please guide. Thanks in advance.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire