dhtmlxMenu change css active item

Hello,

I’ve searched on the forum how to set an active class on click of an item in the menu and I found only old posts where solutions doesn’t work anymore :
menu.setOnClickHandler(function(id){
menu.getItem(id).topNod.style= …
menu.getItem(id).textTag.style= …
});

If it’s possible I would like to apply the selected class (dhtmlxMenu_dhx_web_TopLevel_Item_Selected) to the item onclick.

Is there a way to do this please?
Thanks,
Loïc

Hi

please send your old demo to support@dhtmlx.com

Hi Andrei,

Thanks for your answer. I don’t have any demo of this. I’d just find this post from May 2008:
viewtopic.php?f=4&t=1959

But getItem() doesn’t work with new dhtmlxsuite version.

Hello,

Do you have any idea please?

Thanks,
Loïc

Hi

unfortunately there is no native functionality for this in 4.x version. You can request for customization at our sales dept at sales@dhtmlx.com