title: stopping a youtube video in a modal window when modal is closed
body: <p>I am trying to do something really simple. I have a bootstrap modal window where I am putting a youtube iframe video like this:</p>
  
  <pre><code>&lt;iframe id='youtube-player' width="560" height="315" src="http://www.youtube.com/embed/AYPePO0oa_o?rel=0&amp;wmode=transparent" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>I'd like to use bootstrap's close class to just top the video. I have this but not working (obviously)</p>
  
  <pre><code>$('.close').on('click', function(){
    alert('here you are');
    $('#youtube-player').stopVideo();
  });
  </code></pre>
  
  <p>This should seem like it should be really simple but I'm not sure what I should be doing? Any help would be appreciated.</p>
  
  <p>thx in advance,</p>
  
  <p>jonathan</p>