J
J
jeka-32021-03-03 12:46:25
JavaScript
jeka-3, 2021-03-03 12:46:25

How to assign class disabled to button when non-circular owl carousel?

How to give a disabled class to a button with a non-circular owl carousel if there is no next slide?

$('.next').click(function() {
  owll.trigger('next.owl.carousel');
});
$('.prev').click(function() {
  owll.trigger('prev.owl.carousel');
});

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Danny Arty, 2021-03-03
@jeka-3

So you specify loop: false in the script for the carousel and that's it. Buttons will be assigned the disabled class. Here is an
upd example: a solution for your layout

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question