Answer the question
In order to leave comments, you need to log in
How to open a specific list group section of bootstrap on clicking a link?
Hello. There are several list group sections, how can I open a specific section without using data toggle, but through javascript? Even if, for example, I am on another page, and open it through the menu. So that when clicked, a page with the desired section opens. Plz tell me how to implement.
<div class="list-group" id="list-tab" role="tablist">
<a class="list-group-item list-group-item-action active" id="list-home-list" data-toggle="list" href="#tab1" role="tab" aria-controls="home">
Первый раздел
</a>
<a class="list-group-item list-group-item-action d-flex align-items-center" id="list-profile-list" data-toggle="list" href="#tab2" role="tab" aria-controls="profile"> Второй раздел
</a>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question