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
This works:
$('#divName .ui-tabs-panel[aria-hidden="false"]').prop('id');