Required library edition:
Required library file: dhtmlxdataselect.js
returns ID of the selected object
var id = selector.getSelected();