I have a carousel and each anchor in the menu area is linked to selected slide and when the anchor in the menu is selected it receives a .active
class.
Ex: link 1 = slide 1.
I tried to add a stop button instead of next when the carousel reaches the last slider.
<nav class="meniu">
<a href="#">Slide 1</a>
<a href="#">Slide 2</a>
<a href="#">Slide 3</a>
</nav>
<div id="slider">
<ul>
<li>Slide 1</li>
<li>Slide 2</li>
<li>Slide 3</li>
</ul>
</div>
This is the script that i tried to add
if ($('.meniu a:last-child').hasClass('active')){
//change button arrow to stop sign
}
Here is the fiddle - http://jsfiddle.net/G7P46/1/