Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to set an active tab in a tabs container?

Max.WongJan 31 2024 — edited Feb 22 2024

Hello everyone,

How to set an active tab in a tabs container?

Instead of using Remember Active Tab, I want to determine which tab sheet to display based on the value of an item when the page is first displayed.

I've tried the following methods and all of them didn't work,

1.apex.jQuery( "#SR_TAB_ROLE_tab" ).focus();
2.apex.jQuery( "#SR_TAB_ROLE_tab" ).prop( "aria-selected", "true");
3.apex.jQuery("li[aria-controls='SR_TAB_ROLE_tab']a").trigger("click");
4.apex.event.trigger("a.t-Tabs-link[href='#SR_TAB_ROLE_tab']","click");
5.apex.region("TABS").widget().aTabs("getTabs")["#SR_TAB_ROLE_tab"].makeActive();

how do I implement this in 23.2?

thanks

This post has been answered by Max.Wong on Feb 26 2024
Jump to Answer
Comments
Post Details
Added on Jan 31 2024
12 comments
2,606 views