B
B
Bandibar2017-12-07 01:05:21
JavaScript
Bandibar, 2017-12-07 01:05:21

Slick dots don't react to external jquery events, how to implement?

I just use slcik slider, inside 4 slides with four dot paginators, I need to connect a class change for the outer block when we click on any marker in the slider, my attempts did not bring any result:

$('#slick-slide03 button').on('click', function() {
    $('.map_animation').toggleClass('map_animation2');});});

or
$("#slick-slide00").children("button").click(function() {
        $('.map_animation').toggleClass('map_animation2');
    });


Tell me what I'm doing wrong, or how to correctly implement such an event?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2017-12-07
@Bandibar

afterChange, beforeChange not satisfied?
kenwheeler.github.io/slick/#settings

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question