I am currently working on creating a website where Bootstrap tabs will display content according to their unique ID when selected. However, I have encountered an issue where the tab selected does not remain active. I am thinking of creating a custom active class to apply to the selected tab. Can anyone guide me on how to customize tabs when they are selected, such as changing the background color of a span when selected?
Here is a snippet of my Bootstrap code:
<div class="col-lg-2 col-md-2 col-sm-6 col-xs-6">
<span data-toggle="pill" href="#lorem" class="btn btn-lg btn-default team-name">Lorem</span>
<span data-toggle="pill" href="#ipsum" class="btn btn-lg btn-default team-name">Ipsum</span>
</div>
<div class="tab-content">
<div id="lorem" class="tab-pane fade in active">
<div class="text-center head-text">
<h3>Lorem</h3>
</div>
</div>
<div id="ipsum" class="tab-pane fade">
<div class="text-center head-text">
<h3>ipsum</h3>
</div>
</div>
</div>