我的页面上有2个标签(使用Bootstrap):
当我从配置文件选项卡发送POST请求时,我想激活此选项卡,我该怎么做?
看起来你有一个"活动"类来激活标签.在这种情况下,你可以这样做:
$("#home").removeClass("active"); // this deactivates the home tab $("#profile").addClass("active"); // this activates the profile tab
您的确切示例在文档中,它表示要激活您执行的选项卡:
$('#myTab a[href="#profile"]').tab('show')
http://getbootstrap.com/javascript/#tabs