Skip to content

Instantly share code, notes, and snippets.

@tatygrassini
Forked from magefad/bootstrap-modal-youtube
Created July 15, 2013 21:40
Show Gist options
  • Save tatygrassini/6003755 to your computer and use it in GitHub Desktop.
Save tatygrassini/6003755 to your computer and use it in GitHub Desktop.
jQuery(".modal-backdrop, .youtube .btn").click(function() {
var iframe = jQuery(this).parent().parent().find("iframe");
iframe.attr("src", iframe.attr("src"));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment