简体   繁体   中英

Slider Next Previous carousel functionality

I have a Jquery carousel slider where I want,

1) On pageload, the previous button should be hided

2) When Click on right, both should be visible

3) On last of the Image, I want the Right should be hided

My class for

Previous --> ".left"

Next --> ".right"

<script type="text/javascript">
  $(document).ready(function () {
      $('.left').hide();
  });
  if($('.right').click(function () {
      $('.left').show();
  }));  </script>

I did not get how to get the last image that's why i asked the question

删除IF: $('.right').click(function () { $('.left').show(); });

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM