Created
June 16, 2017 06:50
-
-
Save AshikNesin/0eb5cfb89daee7e63185bcde4aa4c4e7 to your computer and use it in GitHub Desktop.
Stop video if the model is closed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
$('.modal').each(function(){ | |
var src = $(this).find('iframe').attr('src'); | |
$(this).on('click', function(){ | |
$(this).find('iframe').attr('src', ''); | |
$(this).find('iframe').attr('src', src); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment