xxxxxxxxxx
1
<!-- Collapse buttons -->
2
<div>
3
<a class="btn btn-primary" data-toggle="collapse" href="#collapseExample" aria-expanded="false"
4
aria-controls="collapseExample">
5
Link with href
6
</a>
7
<button class="btn btn-primary" type="button" data-toggle="collapse" data-target="#collapseExample"
8
aria-expanded="false" aria-controls="collapseExample">
9
Button with data-target
10
</button>
11
</div>
12
<!-- / Collapse buttons -->
13
14
<!-- Collapsible element -->
15
<div class="collapse" id="collapseExample">
16
<div class="mt-3">
17
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. Nihil anim
18
keffiyeh helvetica,
19
craft beer labore wes anderson cred nesciunt sapiente ea proident.
20
</div>
21
</div>
22
<!-- / Collapsible element -->
1
1
xxxxxxxxxx
1
$('#collapseExample').on('show.bs.collapse', function () {
2
alert();
3
});
Console errors: 0