How to add event on button .slick-next to the plugin slick.js?

I need to frame handler on the button, otvechayu for the next slide, another css I can get close to her, and using jQuery does not work...
$('.slick-next').bind('click',function(){
alert(1)
}) // this code does not work and click() is really in especially because button .slick-next is created in the DOM by javascript

Help please, very urgent need to solve this problem
June 10th 19 at 15:17
3 answers
June 10th 19 at 15:19
Solution
$(document).on('click', '.slick-next', function(){
alert(1)
})
June 10th 19 at 15:21
// On swipe event
$('.your-element').on('swipe', function(event, slick, direction){
console.log(direction);
 // left
});
June 10th 19 at 15:23
From official documentation:
$('.slider').on('beforeChange', function(event, slick, currentSlide, nextSlide){
console.log(nextSlide);
});

Find more questions by tags SlickjQueryCSSHTMLJavaScript