Stop youtube videos when dismissing the bootstrap modal

30 Oct 2012

I was working on a project that uses bootstrap as a foundation and some youtube videos are played using a modal window. The problem we encountered is that the videos kept playing in the background even after the modal was dismissed. Here is a simple solution to this problem, using jQuery – clear the “src” of the iframe and add it again so you can see the video again if you want to.

Get some Javascript and Jquery help

Here are some books that will help you get better at Javascript and Jquery