How to keep open a sub menu when clicking item (dhtmlxmenu)

I all, I would like to know if there is a way of keep open a submenu on clicking a item.

Thanks anyway

The menu is attached to a dhtmlxlayout.

Thanks.

You need to modify dhtmlxmenu.js:

locate

if ((type.charAt(1) == “d”) || (this.menuMode == “win” && type.charAt(2) == “t”)) return;
this._clearAndHide();

and comment the second line:

if ((type.charAt(1) == “d”) || (this.menuMode == “win” && type.charAt(2) == “t”)) return;
// this._clearAndHide();

Many thanks Alexandra, It worked fine.