一個按鈕,我有兩個標籤: -禁用特定標籤
<div class="modal-body">
<form name="myForm" novalidate="novalidate">
<ul class="nav nav-tabs">
<li class="active"><a data-toggle="tab" href="#basicInfo">Info</a></li>
<li><a data-toggle="tab" href="#view">View Details</a></li>
</ul>
<div class="tab-content">
<div id="basicInfo" class="tab-pane fade in active modal-table-div">
.....
</div>
<div id="view" class="tab-pane modal-table-div fade">
.....
</div>
</div>
和刪除,並添加按鈕按鈕:
<div class="modal-footer">
<button type="button" class="btn btn-danger">Delete</button>
<button type="button" class="btn btn-success">Add</button>
</div>
我想,當我點擊是'查看詳情'選項卡上的刪除按鈕和添加按鈕被禁用,反之亦然。我該如何實現這一目標?
我們可以看到你是如何檢測被點擊的標籤? –