1
I have a menu that is in a include and if I am at home and I click on one of the options goes right to the desired page, only when I am on the page only works the first link that is what I am the rest not. You have to put some HREF jquery to work?
MENU
<ul>
<li><a title="unica">unica</a></li>
<li><a href="unica.php#tabs-1" title="Histórico e Missão">Histórico e Missão</a></li>
<li><a href="unica.php#tabs-2" title="Equipe">Equipe</a></li>
<li><a href="unica.php#tabs-3" title="Conselheiros">Conselheiros</a></li>
<li><a href="unica.php#tabs-4" title="Sindicatos">Sindicatos</a></li>
<li><a href="unica.php#tabs-5" title="Contatos">Contatos</a></li>
</ul>
<div id="tabs-1"></div>
<div id="tabs-2"></div>
<div id="tabs-3"></div>
JQUERY CODE
<script>
$(document).ready(function(){
$("UL LI A").click(function(){
$("#tabs").attr("href", "http://localhost/unica/unica.php");
});
});
</script>
It wasn’t clear. I could explain it better?
– Jorge.M
This menu that I put there will appear on the whole site because they are in a include, when people enter the site and click on any link it goes to another page at the anchor that I determined there in Lik, only that if people want to go to another anchor being already on the page where it exists the menu does not work
– user4451