Skip to content

Instantly share code, notes, and snippets.

@kovalenko-anton
Created August 19, 2017 11:28
Show Gist options
  • Save kovalenko-anton/de6c46f981900077babcb3e6dbe85e20 to your computer and use it in GitHub Desktop.
Save kovalenko-anton/de6c46f981900077babcb3e6dbe85e20 to your computer and use it in GitHub Desktop.
$('li.menu-item-has-children').click( function(){
subMenu = $('ul', this);
if( subMenu.is(":visible") )
{
subMenu.slideUp();
}
else
{
subMenu.slideDown();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment