I have the following excerpt:
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapse2">Número Atendimentos PS que Viraram Internação</a>
</h4>
</div>
<div id="collapse2" class="panel-collapse collapse">
<div class="panel-body">
Conteúdo#########
</div>
</div>
I would like collapse2 (conteúdo)
to only load on the page after clicking href: #collapse2
. It is accordion do bootstrap
.
Would this be possible with Javascript
?