There is a code where 'open_menu' is a button (link), and 'header_menu' is a menu. When you click on the button, the menu should appear, and when pressed again, disappear. But instead, the button itself appears and disappears, without clicking on it (like an animation). Tell me where the error is, please.
$(document).ready(function() { $(".open_menu").toggle(function() { $(".header_menu").fadeIn(); return false; }, function() { $(".header_menu").fadeOut(); return false; }); });