I have created a image slider using Jquery Slick Slider, Its having youtube video clips as well. When page load youtube video is set to 1st slide of the slider and it is aut
Adding off of Sequence's answer, this will allow the slider to function even if there is more than one slider on the page.
$('.mainSlider').on('beforeChange', function(event, slick, currentSlide, nextSlide){ var current = $(slick.$slides[currentSlide]); current.html(current.html()); });