title: jQuery how to select iframe in Modal Popup?
body: <p>I'm trying to select the closest iframe with jQuery for modal popup. There are a lot of these windows so, I'd like to select the nearest iframe. I'd expect closest() to work, but no luck. I am using this popup <a href="http://dinbror.dk/bpopup/" rel="nofollow noreferrer">http://dinbror.dk/bpopup/</a></p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;div class="button"&gt;Hello&lt;/div&gt;
  &lt;div class="modal-popup" style="display: none;"&gt;
      &lt;iframe src="https://www.youtube.com/embed/Bjj58nbAMK8"&gt;&lt;/iframe&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>jQuery</strong></p>
  
  <pre><code>$(document).ready(function(){
     $('.button').click(function(event) {
       $('.modal-popup').bPopup({
         followSpeed: 200,
         speed: 200,
       });
    });
  });
  </code></pre>