Required library edition: Required library file: dhtmlxtoolbar.js
returns selected listed option
var selectedId = toolbar.getListOptionSelected(parentId);