Good afternoon, I need help with jquery, here's an example:
<ul>
<li><a href="#1">Conteudo1</a></li>
<li><a href="#2">Conteudo2</a></li>
<li><a href="#3">Conteudo3</a></li>
</ul>
<div class="teste" id="1">
<p>Teste 1</p>
</div>
<div class="teste" id="2">
<p>Teste 2</p>
</div>
<div class="teste" id="3">
<p>Teste 3</p>
</div>
$(document).ready(function(){
$('.teste').hide();
});
How do I make only the div that is referenced in the menu appear when I click?