Skip to content

Instantly share code, notes, and snippets.

@erezLieberman
Created February 26, 2014 12:52
Show Gist options
  • Save erezLieberman/9228963 to your computer and use it in GitHub Desktop.
Save erezLieberman/9228963 to your computer and use it in GitHub Desktop.
stop you tube player when bootstrap 3 modal was hiden
//stop you tube player when bootstrap modal was hiden
$('.modal').on('hide.bs.modal', function () {
$(this).find('iframe').attr("src", $(this).find('iframe').attr("src"));
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment