Superfish jQuery menu: 3rd level always open when 1st level hovered

1.4k Views Asked by At

I'm trying to achieve a menu where you can hover the first level and the second and the third level (of the first item in second level) opens.

I thought it would be possible with the onHide-callback function of superfish or with the pathClass-argument but it failed so far.

My menu looks something like this: jsfiddle

In the example on jsfiddle it should be hovered ASDF and the 3rd level would open with bla 1 and bla 2

Any hints how this problem could be solved would be appreciated.

1

There are 1 best solutions below

1
On BEST ANSWER

You should be able to use the onShow callback to do what you want:

$('.mainnav>ul').superfish({
    onShow: function() {
        $( this ).find( ".sf-with-ul:first" ).closest("li").trigger("mouseenter");
    }
});

http://jsfiddle.net/petersendidit/XnxaE/7/