Answer the question
In order to leave comments, you need to log in
How many modal windows can be made?
I made this block on the bootstrap: , in these pictures, a modal window with a video from youtu.be , I made a different video for each photo, but when you open any of them, a video from 1 picture opens.
+ Even after all manipulations with windows, the page loads for a very long time (considering that I open it locally...)
What am I doing wrong? Maybe you can't do so much on one page? There are sixteen such blocks with a picture in total.
Answer the question
In order to leave comments, you need to log in
Do an ajax load
, it will look something like this
$(#id).modal('show').find('$idModal').load('#href')
;$('#button').click(functuion(){
$(this).attr(href);// Или примерно так если укажешь data-href $(this).data("href")
})
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question