컴 이것저것/Java Script
EasyUI - tabs/tab 현재 선택된 인덱스|id 확인하기
별속삭임
2022. 11. 14. 16:22
728x90
*getSelected : 현재 선택된 탭 가져오기.
var tab = $('#tt').tabs('getSelected');
*getTabIndex : 탭 인덱스 가져오기.
var tab = $('#tt').tabs('getSelected');
var index = $('#tt').tabs('getTabIndex',tab);
alert("index:" + index);
*id 확인하기.
const tab = $('#infoTabs').tabs('getSelected');
const tabOptions = tab.panel('options');
const infoTabId = tabOptions.id;
반응형