Twitter ブートストラップを使用しています。アクティブなタブをクリックすると、アクティブなタブ コンテンツが閉じます。
私はこのコードを使用していますが、これは機能していません:
$('#myTab a').click(function (e) {
if ($(this).parent('li').hasClass('active')) {
$($(this).attr('href')).removeClass('active');
$(this).parent('li').removeClass('active');
} else {
e.preventDefault();
$(this).tab('show');
}
});