I know there are similar questions to this, but I haven\'t quite been able to get it to work.
This code shows a YouTube video which is within an iframe. When a button (
//in HTML
Example Video Modal
This modal has video
//in apps.js
function destroyVideo(){
var url = $('#youtubePlayer').attr('src');
$('#youtubePlayer').attr('src', '');
$('#youtubePlayer').attr('src', url);
}
//This work for Foundation 6.2