dhtmlxMenu - retrieve id of all check items

hello,

for dhtmlxMenu, when we have items of type checkbox. How can we get all menu items (or id) that are checked?

thanks,
josh

Hello,

you can try to use getCheckboxState method:
var checked = [];
menu.forEachItem(function(itemId){
if(this.getCheckboxState(itemId))
checked.push(itemId);
})