jquery - How hide 'previous' and 'next' buttons on first and last slide in Bootstrap carouse -


i working on bootstrap carousel. carousel moves 1 one each item in order display 6 items. question is:

how hide 'previous' , 'next' buttons on first , last slide?

i'll put id on you're first , last item :

<div class="item" id="firstitem"> <div class="item" id="lastitem"> 

and on both of you're arrow image :

<a class="left carousel-control" id="leftarrow" href="#mycarousel" data-slide="prev"> <a class="right carousel-control" id="rightarrow" href="#mycarousel" data-slide="next"> 

and check in you're js code if you're current item id firstitem or lastitem , hide you're both arrow.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -