Closed Reem-Alatrash closed 9 years ago
the same issue here any solution??
i solved it by adding this line after calling script:
$('h2[aria-controls="tab_item-1"]').click();
u can change it to every tab u want :-)
First Close All Active Tabes:
$("ul.resp-tabs-list > li").removeClass("resp-tab-active");
$("div.resp-tabs-container > h2").removeClass("resp-tab-active");
$("div.resp-tabs-container > div").removeClass("resp-tab-content-active");
$("div.resp-tabs-container > div").hide();
Open Tab Item 2:
$('ul.resp-tabs-list > li[aria-controls="tab_item-2"]').addClass("resp-tab-active");
$('div.resp-tabs-container > h2[aria-controls="tab_item-2"]').addClass("resp-tab-active");
$('div.resp-tabs-container > div[aria-labelledby="tab_item-2"]').addClass("resp-tab-content-active");
$('div.resp-tabs-container > div[aria-labelledby="tab_item-2"]').show();
I have a tabs that are dynamically loaded and I want to set one of them as the default one.
I added class="resp-tab-active" to the list item to be opened by default. However, this didn't work. I tried putting the item at the beginning of the list which works only if there are more than 1 items in the list.