title: How do I set the src to an iframe with jQuery?
body: <p>My iFrame looks like this:</p>
  
  <pre><code>&lt;iframe id="iframe" name="iframe1" frameborder="0" src=""&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>And my script looks like this:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(document).ready(function() {
      $('#iframe').attr('src',http://google.com);
  })
  &lt;/script&gt;
  </code></pre>
  
  <p>I've also tried putting quotes around the url:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(document).ready(function() {
      $('#iframe').attr('src','http://google.com');
  })
  &lt;/script&gt;
  </code></pre>
  
  <p>But neither is working. </p>
  
  <p>What am I missing?</p>