Answer the question
In order to leave comments, you need to log in
How to make bootstrap carousel class active and adding indicators dynamically?
Please tell me how to make a bootstrap carousel without adding the "active" class to the first slide.
And also, how to make indicators generated dynamically and not through layout?
bootstrap indicators:
<ol class="carousel-indicators">
<li data-target="#carousel" data-slide-to="0" class="active"></li>
<li data-target="#carousel" data-slide-to="1"></li>
<li data-target="#carousel" data-slide-to="2"></li>
</ol>
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