Hello everyone, I have the following JQuery Code concerning my tabs :
$("#onglet>ul>li").click(function(){
$("#onglet ul li").removeClass('Selectionne').addClass("OngletPrincipal");
$(this).removeClass().addClass('Selectionne');
$(this).unbind('mouseenter mouseleave');
it works, but as soon as I click on a tab which leads me to another page, the tab gets its original class.... so its appearance finally doesn't change..
<div id="onglet">
<ul >
<li class="OngletPrincipal">
<a href="masterPage.html">Accueil</a>
</li>
<li class="OngletPrincipal">
<a href="masterPage.html">Catalogue </a>
</li>
<li class="OngletPrincipal">
<a href="Societe.html"> Nous </a>
</li>
<li class="OngletPrincipal">
<a href="contact.html"> Contacts </a>
</li>
<li class="OngletPrincipal">
<a href="tableauBord.html"> Espace client</a>
</li>
</ul>
</div>
how I am supposed to keep the tab with the "Selectionne" class ? .... thankkkkkk you !