Hi guys,
I have a video into a bootstrap modal form that is opened on click. Now when i close the modal i want that video to stop playing.
I've manage to do some javascript to do that but instead of stopping the the video i want it stops all the video from that page.
How can i target in the script below only the ID of the modal that i want to be stoped from playing?
<script>
$('body').on('hidden.bs.modal', '.modal', function () {
$('video').trigger('pause');
});
</script>