Tab onclick?
Posted: 05 May 2014
Is there a way to run some javascript when a tab is clicked? We have a bunch of tabs and would like to know which tab is clicked so that an HTML element can be set dynamically.
Design SharePoint forms with tabs, complex tables, accordions, sub-lists, and 3rd party columns
https://spform.com/forum/
Code: Select all
$('#fd_tabcontrol-0').on('tabsactivate', function(event, ui) {
alert('New tab: ' + ui.newTab.text());
alert('Previous tab:' + ui.oldTab.text())
});