문제

Is there any way I can find the target container of the active tab of Jquery UI tabs?

도움이 되었습니까?

해결책

active container has attribute aria-expanded set to true. so to get the active container you can use:

var container_active= $('[aria-expanded="true"]');

or you can get id of currently active container using:

var active_container_id=$('.ui-state-active a').attr('href').replace('#','')
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top