Good People 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 loading a list of videos from the database, which has the title of the video, and the link of the video, 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 question is, how do I change the IFRAME video when the button is clicked? with javascript or jquery