Upgrade ExpandMenu

jsiegwald / 2019-03-26 21:01:56   

Hi everyone,

I'm looking for a new version of the ExpandMenu that existed on the v0.x, but can't find it for the 2.x. Do you have any ideas ?

This isn't working anymore:
function expandingMenu(num) {
var speed = 500;

var item_title = $("#menu ul").eq(num).children(":first");
var items = $("#menu ul").eq(num).children().filter(function (index) { return index > 0; });

/* hide items if not active */
if (items.is(".active") == false) {
items.hide();
}

/* add click functions + pointer to title */
item_title.css({cursor:"pointer"}).toggle(
function () {
items.show(speed);
}, function () {
items.hide(speed);
}
)
}

This thread has been closed, thank you.