xxxxxxxxxx
1
<div class="dropdown">
2
<button
3
class="btn btn-primary dropdown-toggle"
4
type="button"
5
id="dropdownMenuButton"
6
data-mdb-toggle="dropdown"
7
aria-expanded="false"
8
>
9
Dropdown button
10
</button>
11
<ul class="nav nav-tabs mb-3 dropdown-menu" id="ex1"
12
aria-labelledby="dropdownMenuButton"
13
role="tablist">
14
<li class="nav-item" role="presentation">
15
<a
16
class="nav-link active"
17
id="ex1-tab-1"
18
data-mdb-toggle="tab"
19
href="#ex1-tabs-1"
20
role="tab"
21
aria-controls="ex1-tabs-1"
22
aria-selected="true"
23
>Tab 1</a
24
>
25
</li>
26
<li class="nav-item" role="presentation">
27
<a
28
class="nav-link"
29
id="ex1-tab-2"
30
data-mdb-toggle="tab"
31
href="#ex1-tabs-2"
32
role="tab"
33
aria-controls="ex1-tabs-2"
34
aria-selected="false"
35
>Tab 2</a
36
>
37
</li>
38
<li class="nav-item" role="presentation">
39
<a
40
class="nav-link"
41
id="ex1-tab-3"
42
data-mdb-toggle="tab"
43
href="#ex1-tabs-3"
44
role="tab"
45
aria-controls="ex1-tabs-3"
46
aria-selected="false"
47
>Tab 3</a
48
>
49
</li>
50
</ul>
51
</div>
52
53
54
<!-- Tabs content -->
55
<div class="tab-content my-5" id="ex1-content">
56
<div
57
class="tab-pane fade show active"
58
id="ex1-tabs-1"
59
role="tabpanel"
60
aria-labelledby="ex1-tab-1"
61
>
62
Tab 1 content
63
</div>
64
<div class="tab-pane fade" id="ex1-tabs-2" role="tabpanel" aria-labelledby="ex1-tab-2">
65
Tab 2 content
66
</div>
67
<div class="tab-pane fade" id="ex1-tabs-3" role="tabpanel" aria-labelledby="ex1-tab-3">
68
Tab 3 content
69
</div>
70
</div>
71
<!-- Tabs content -->
xxxxxxxxxx
1
.dropdown-menu {
2
display:none;
3
}
1
1
Console errors: 0