the first title shows and hides the other three. Click on the first title and show the other three ... first title disappeared. help help me.
$(document).ready(function(){
$(".menu_item:nth-child(2)").hide();
$(".menu_item:nth-child(3)").hide();
$(".menu_item:nth-child(4)").hide();
$('.menu_item').click(function() {
$(".menu_item").slideToggle();
});
});
a {
text-decoration: none;
color: #000;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="nav">
<div class="menu_item">
<h3><a href="#"> Sesión demo 1</a></h3>
</div>
<div class="menu_item">
<h3><a href="#"> Sesión demo 2</a></h3>
</div>
<div class="menu_item">
<h3><a href="#"> Sesión demo 3</a></h3>
</div>
<div class="menu_item">
<h3><a href="#"> Sesión demo 4</a></h3>
</div>
</div>