On Feb 15, 7:13 am, rokomotibu <paro...@gmail.com> wrote:
> now menus disappear from screen only after user moves cursor away from
> menu, but i want it to disappear right after user has chosen an item..

Hello,

It is not clear from your description whether the links take the user
to another page as normal, or if you want the sub menus to close
because they are scripted to do an action without navigating to
another page. Assuming it is the latter, try this (untested):

$('ul.sf-menu a').bind('click',function() {
        $(this).parents('li.sfHover').hideSuperfishUl();
        return false;
});

Otherwise, if you do want the links to go to another page, just delete
the 'return false;'. Hope this helps.

Joel Birch.

Reply via email to