I know I can get the index of the currently selected tab but can I somehow get to the ID (the equivalent of the ui.panel.id if this were triggered by an tab eve
ui.panel.id
For jquery version below 1.9:
Search Notes Writeback Attorney
And you can find the active tab using:
jQuery('#unid').find('li.active').attr('id')