Disabling Tabs in Bootstrap
HTML: Just add class disabled
JQUERY:
$(".disabled").click(function (e) {
e.preventDefault();
return false;
});
Here's the solution. It seems bootstrap doesn't like you changing the active tags manually.
$(document).ready(function(){
$('#store-tab').attr('class', 'disabled');
$('#bank-tab').attr('class', 'disabled active');
$('#store-tab').click(function(event){
if ($(this).hasClass('disabled')) {
return false;
}
});
$('#bank-tab').click(function(event){
if ($(this).hasClass('disabled')) {
return false;
}
});
$('.selectKid').click(function(event){
$('.checkbox').removeAttr("disabled");
$('#bank-tab').attr('class', 'active');
$('#store-tab').attr('class', '');
});
});