1
I want to change the display
of div
content block, as it is clicking and hiding the one that was previously clicked.
How could I do that to jQuery?
.conteudo_1 {
display: none
}
.conteudo_2 {
display: none
}
.conteudo_3 {
display: none
}
<ul>
<li><a href="">Conteudo 1</a></li>
<li><a href="">Conteudo 2</a></li>
<li><a href="">Conteudo 3</a></li>
</ul>
<div class="conteudo_1">
<p>
texto conteudo 1
</p>
</div>
<div class="conteudo_2">
<p>
texto conteudo 1
</p>
</div>
<div class="conteudo_3">
<p>
texto conteudo 1
</p>
</div>
You want to change the
display
or hide and show widget ? Hide and show is just useshow
/hide
ortoggle
.– Isac
I want to change the display of div to block, as long as it is clicking and hiding the one that was previously clicked
– Wagner Martins Bodyboard
Behold this question that the goal is quite similar to your
– Isac