APEX 5. I have several collapsible regions on a page and am using a region display selector. I have a user request to automatically expand the region when a single region is selected with the region display selector.
I found code to be able to capture what region is selected. I am trying to figure out how to put this to use to do what I need to do and I thought for sure this would work. This is what I have in the Execute when Page Loads for my page:
$('.apex-rds').data('onRegionChange', function(mode, activeTab) {
console.log(activeTab.href);
$(activeTab.href+' button.t-Button--hideShow[aria-expanded="false"]').click();
});
The console.log works just fine and displays the region as expected If I hard code in the name of the region in the code to expand the region it works, I just can't figure out how to get it to work using activeTab.href for the region name.
console output:
