I have a nav in a box with this
html:
id="theMenu">
And
this
jQuery:
;(function(){
// Menu settings
$('#menuToggle, .menu-close').on('click',
function(){
$('#menuToggle').toggleClass('active');
$('body').toggleClass('body-push-toleft');
$('#theMenu').toggleClass('menu-open');
});
})(jQuery)
Can you
please help me and write me what I have to add in the js to close my menu when I click
in the menu button but ALSO when I clicked outside ?
No comments:
Post a Comment