i want make an URL (<a>
) in a tab to go to a another tab.
I don't want the URL in the navbar, but outside of the navbar; just lonely external url who can change the active tab
Actually my code look like this :
<nav class="navbar logsubnav px-0 py-0">
<ul class="navbar logsubnav px-0 py-0 nav nav-fill w-100">
<li class="nav-item NIModal"><a class="nav-link" href="#tabconnexion" data-toggle="tab">Connexion</a></li>
<li class="nav-item NIModal"><a class="nav-link" id="tabco" href="#tabinscription" data-toggle="tab">Inscription</a></li>
<li class="nav-item NIModal"><a class="nav-link bg-danger" id="closeTabSubLog" href="#" data-dismiss="modal"><i class="fas fa-times fa-2x"></i></a>
</ul>
</nav>
<div class="tab-pane fade show active" id="tabconnexion">
<form id="co-form" action="" method="POST">
<div class="form-group">
<label for="emailco">E-mail :</label>
<input class="form-control" type="text" id="emailco" name="emailco" class="form-control">
</div>
<div class="form-group">
<label for="passwordco">Mot de passe :</label>
<input class="form-control" type="password" id="passwordco" name="passwordco" class="form-control">
<a id="forgetpwd" href="#tabforget" data-toggle="tab">Mot de passe oublié ?</a>
</div>
<div class="form-check"><label>
<input class="form-check-input" type="checkbox" id="remember" name="remember" value="1">Rester connecté
</div>
<button name="submitco" type="submit" class="btn btn-info">Se connecter</button>
<button type="reset" class="btn btn-danger" data-dismiss="modal">Annuler</button>
<p class="msgErreurco"></p>
</form>
</div>
I want the URL with the ID "forgetpwd"
open the tab "#tabforget"
Actually I can open one time the tab #tabforget
with the url "#forgetpwd"
but only one time, when I click a second time on the URL "#forgetpwd"
nothing happening, but if i put the link in the navbar, everything works.