<ul class="nav nav-tabs tabb">
<li id="li_permission_info_<?=$this->id_permission?>" class="active" >
<a data-toggle="tab" href="#tab_permission_info_<?=$this->id_permission?>"><i class="icon-user"></i>Permission Information <?=$this->id_permission?></a>
</li>
<li id="li_permission_details">
<a data-toggle="tab" href="#tab_permission_details_<?=$this->id_permission?>" data-value="<?=$this->id_permission?>"><i class="icon-home"></i>Permission Details</a>
</li>
</ul>
$("body").on("click", "#li_permission_details", function(event){
console.log("test");
});
我遇到了问题,因为 jquery 脚本在第二次点击<li>
标签时没有被激活