zazu Posted March 8, 2016 Share Posted March 8, 2016 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> Quote Link to comment https://forums.phpfreaks.com/topic/300947-target-id-of-a-bootstrap-modal-to-stop-video-from-playing-when-modal-is-closed/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.