Answers for "bootstrap set active tab javascript"

-1

bootstrap set active tab javascript

$(document).ready(function(){
    activaTab('aaa');
});

function activaTab(tab){
    $('.nav-tabs a[href="#' + tab + '"]').tab('show');
};
Posted by: Guest on July-08-2020
0

Make Bootstrap tab Active on the bases of URL link

var url = window.location.href;
var activeTab = url.substring(url.indexOf("#") + 1);
 $(".tab-pane").removeClass("active in");

$("#" + activeTab).addClass("active in");

$('a[href="#'+ activeTab +'"]').tab('show')
Posted by: Guest on June-14-2021

Code answers related to "bootstrap set active tab javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language