I have two div elements (i didn’t include CSS but there is):
When you press openMenu first, it slideDown’s, however afterwards if you press it nothing happens. (if you run slideToggle on console it works)
$(document).ready(function(){
$("#openMenu").click(function(){
$("#menu").slideToggle(1000)
})
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<div id="openMenu">click here</div>
<div id="menu">menu here</div>
Using slideToggle on console, and it works.
Tried using slideDown when openMenu is pressed, and slideUp when menu was pressed, however slideUp didn’t work (nothing happend after pressing menu)