I am new to jquery and bootstrap,so please consider my mistakes.I have created a bootstrap modal for login and registration. It contains two nav-tabs called as login and reg
Applying a selector from the .nav-tabs seems to be working
HTML is
AAA BBB CCC ...Content... ...Content... ...Content...
Script is
$(document).ready(function(){ activaTab('aaa'); }); function activaTab(tab){ $('.nav-tabs a[href="#' + tab + '"]').tab('show'); };
http://jsfiddle.net/pThn6/80/