I use ver 3.2.1.min.js with bootstrap4..So as you see in the example that what happen with me slide1 take display none and i don't knew why that happen.. what i want is when click slide1...slide2 go down and when click again slide2 go up
$("ul .slide1").toggle(function(){
$("ul .slide1 .slide2").slideDown("slow");
}, function(){
$("ul .slide1 .slide2").slideUp("slow");
})
ul .slide1 {
display: block;
}
ul .slide1 .slide2 {
display: none;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<ul>
<li>
Hello world1
</li>
<li class="slide1">
Hello world2
<ul class="slide2">
<li>hello hello hello</li>
<li>hello hello hello</li>
<li>hello hello hello</li>
</ul>
</li>
<li>
Hello world3
</li>
</ul>