Add src attribute to iframe using jQuery?
<pre><code>$(document).ready(function(){
   $("#container").click(function(){
      $("#myiframe").attr('src', 'example.com');
   });
});
</code></pre>

<p>This doesn't work? The container is actually is a lightbox. The reason I am not defining the src attribute by default is because iframe loads even when lightbox isn't shown yet.</p>
