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
Post a Comment