skip to Main Content

I need to open 4 Bootstrap modals (4.1 version) and autoplay a different Vimeo video on each one of them – Jquery

I've been using this solution by Franceso Borzi: var videoSrc = $("#myModal iframe").attr("src"); $('#myModal').on('show.bs.modal', function () { // on opening the modal // set the video to autostart $("#myModal iframe").attr("src", videoSrc+"&autoplay=1"); }); $("#myModal").on('hidden.bs.modal', function (e) { // on closing the…

VIEW QUESTION
Back To Top
Search