Advertisement
afsarwebdev

slider-control-hid if slide one

Mar 24th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. //if slider item one then show one slide as banner and control hide
  2. $(function() {
  3. var x = $('.swiper-slide').length;
  4. if(x == 1) {
  5. $('.ic-sbtn').hide();
  6. }
  7. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement