Answer the question
In order to leave comments, you need to log in
How to perform an action for the first active tab when entering the site and then when you click on it?
Got bootstrap tabs
<div class="tab-content">
<div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab">...</div>
<div class="tab-pane fade" id="profile" role="tabpanel" aria-labelledby="profile-tab">...</div>
<div class="tab-pane fade" id="messages" role="tabpanel" aria-labelledby="messages-tab">...</div>
<div class="tab-pane fade" id="settings" role="tabpanel" aria-labelledby="settings-tab">...</div>
</div>
Answer the question
In order to leave comments, you need to log in
There is documentation about this, see the section Events (Events)
https://getbootstrap.com/docs/4.4/components/navs/...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question