0
Good Folks I have a screen that incorporates Youtube videos
<div class="row centro-video">
<iframe width="853" height="480" class="fundo-video" id="video-curso1" src="https://www.youtube.com/embed/kRUyL6cJ7W4?rel=0&showinfo=0" frameborder="0" allowfullscreen></iframe>
</div>
I’m uploading a list of videos from the database, which has the video title, and the video link, I’m creating a button for each video.
<?php
foreach ($listaVideo as $videoobj) {
?>
<a href="<?php echo $videoobj->getLink()?>" data-dismiss="modal" class="btn btn-block btn-primary texto-grande" type="button"> <?php echo $videoobj->getTitulo()?></a>
<?php
}
?>
The doubt is the following, how do I change the IFRAME video when the button is clicked ? with javascript or jquery
What you want would be to change the font (
src
) video by clicking a button?– Leandro
i wanted to change the link of the iframe, with the link that I get from the bank in the case in the part $videoobj->getLink()
– Rodrigo Jacinto