I have tabs
, where I put a dropdown
element inside. The problem is, the dropdown list is not visible. Open/close event is working, but I don't see the list. If i move the dropdown outside the tabs, it is working. What's going on ?
JavaScript
<!-- language: lang-js -->$(document).ready(function () {
$('.tabs-student a').click(function (e) {
e.preventDefault();
$(this).tab('show');
});
});
HTML
<!-- language: lang-html --><ul class="nav nav-tabs tabs-s">
<li class="active"><a href="#tab-activity">A</a></li>
<li class=""><a href="#tab-sales">B</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="tab-activity">
<div class="btn-group left">
<button class="btn btn-small dropdown-toggle" data-toggle="dropdown">test1
<span class="caret caret-fix"></span>
</button>
<ul class="dropdown-menu class-list scrollable-menu center">
<li><label id="1" class="link active">test1</label></li>
<li><label id="2" class="link">test2</label></li>
</ul>
</div>
</div>
<div class="tab-pane" id="tab-sales">
test
</div>
</div>