Here you are: http://jsfiddle.net/bc4mg13a/13/
$(".menu-item-has-children").on("click", function(e){
e.stopPropagation();
var clickedLi = $(this);
$("> ul", clickedLi).slideToggle();
clickedLi.toggleClass("current");
});
For starters, your first js line has so many redundant things.
$( ". top ul li: not (: has (li.current))" ). find ( "ul" ). hide(). end()// UL
.click
:
$( ". top ul li: not (.current)" ). find ( "ul" ). hide(). end()// UL
.click
, , . , slidetoggle + "".
i css.