Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Garima on Sep 29, 2008 04:42
open dhtmlx forum
dhtmlmenu

Suppose i have 3 items in main menu like Home, Profile,Development and there are sub menus under all these.
If select submenu under profile main menu and i want to display that the main menu Profile should be selected with some color
sothat user should be able to identify the open page belongs to that particular main menu.
What code should i write.
Please tell its urgent.

thanks
Garima
Answer posted by Support on Sep 30, 2008 08:45
Menu has not any special way to mark elements. 
When data loaded from XML you can use "className" attribute to set custom css class for menu item.
In case of adding element by js command, the same can be done through 4th parameter of js command.