Required library edition:
Required library file: dhtmlxtoolbar.js
calls user defined handler for each listed option of parentId
toolbar.forEachListOption(parentId, function(optionId){ // code here }); // or function doWithListOption(optionId){ // code here } toolbar.forEachListOption(parentId, doWithListOption);