I have a bootstrap carousel and I want to display a text accordingly to slides in the paragraph under the carousel. Is there any jquery way how to do that?
ie. first slide, text "Hi!"; second slide, "Lorem ipsum dolor sit amet..."
my carousel:
<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<div class="item active">
<img src="img/krok_02.png" alt="ommo 2">
</div>
<div class="item">
<img src="img/krok_03.png" alt="ommo 3">
</div>
<div class="item">
<img src="img/krok_04.png" alt="ommo 4">
</div>
</div>
<!-- Left and right controls -->
<a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
<span class="glyphicon-chevron-left" aria-hidden="true"><img src="img/sipka_leva.png" alt="<"></span>
<span class="sr-only">Předchozí</span>
</a>
<a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
<span class="glyphicon-chevron-right" aria-hidden="true"><img src="img/sipka_prava.png" alt=">"></span>
<span class="sr-only">Následující</span>
</a>
</div>
And I want to display the text into a paragraph with an id "text".
I have found this topic, but I'm not clever from that, anybody could explain me how to make it? I'm new to jquery and I would really appreciate it.
jQuery Boostrap Carousel Show content according to current slide