bootstrap tab show event code example
Example 1: bootstrap tabs click event jquery
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
var target = $(e.target).attr("href") // activated tab
alert(target);
});
Example 2: bootstrap open tab from link data-toggle="tab"
$(document).ready(function(){
activaTab('aaa');
});
function activaTab(tab){
$('.nav-tabs a[href="#' + tab + '"]').tab('show');
};