2
How do pro jquery open only the box I clicked, without opening the others. I tried to use $(this), but I couldn’t. Not the way I want.
HTML
<div class="main">
<i class="icon icon-edita">Editar</i>
<div class="Box_editor">
<p>Box editor 1</p>
</div>
<i class="icon icon-edita">Editar</i>
<div class="Box_editor">
<p>Box editor 2</p>
</div>
<i class="icon icon-edita">Editar</i>
<div class="Box_editor">
<p>Box editor 2</p>
</div>
</div>
Jquery
$(document).ready(function(){
$(".icon-edita").click(function(){
$(".Box_editor").show("slow", function(){});
});
});
I did not put the css, because it is already correct the problem is in jquery msm. vlw o/
Each
Editar
is supposed to show theBox_editor
who is right behind?– Isac
is yes Isac. when I click edit 1 the box 1 appears
– EDGNoizy