简体   繁体   中英

Ajax Tab - javascript to check which tab is selected

I have an AjaxControlToolKit TabContainer with 2 tabs that I load via a custom control in C#. On switching between tabs, I need to fire an event.

Which javascript event should I check for to determine which tab is selected?

var ai = $find('tc_id').get_activeTabIndex();
if (ai == "1") {
    setDetail1Sync();
}
else {
    setDetail0Sync();
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM