How to get Id of Select List?

I have a toolbar with multiple Select menus, based on the Id passed in through the event handler, how do I identify which menu was selected? I am generating the menus on the fly so I cannot look at Item Id selected. I could use UserData, however I was hoping there was a function like getType() to get the Id.

There is an onClick event to get selected id
docs.dhtmlx.com/doku.php?id=dhtm … nt_onclick