Answer the question
In order to leave comments, you need to log in
Need help with jQuery in carousel?
Hello! Please tell me what is this?
There is such a carousel as in the picture. The carousel and video are not the problem, but the problem is JQ. Since I'm not strong in it, I'll forgive the help!
Here's what you need:
Slider
div class="slider"
a href="путь к видео-1" class="video-1">Сдержимое</a<br>
a href="путь к видео-2" class="video-2">Сдержимое</a<br>
a href="путь к видео-3" class="video-3">Сдержимое</a<br>
a href="путь к видео-4" class="video-4">Сдержимое</a<br>
a href="путь к видео-5" class="video-5">Сдержимое</a<br>
/div
div class="video"
Блок с выводом видео
/div
Answer the question
In order to leave comments, you need to log in
$("a").click(function(event) {
event.preventDefault();
target = $(this).attr('href');
$("video").attr("src", target);
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question