There is a drop down menu. Under it should go content. I made an additional menuMargin block, which is shown when the menu is open. Problems begin when I click on another menu link.
jQuery( document ).ready(function( $ ) { $(function () { var links = $('.menu a.parrent'); links.click(function (e) { links.not(this).siblings('ul').slideUp(300); $(this).siblings('ul').slideToggle(300); $('.menuMargin').slideToggle(300); }); }); });
How can this problem be solved?