title: How to access div element by jquery on iframe?
body: <p>How to access div element by jquery on iframe?</p>
  
  <p>I tried this (<a href="http://jsfiddle.net/cmxsw/5/" rel="nofollow">jsFiddle</a>)</p>
  
  <pre><code>&lt;script&gt;
  
      var ifr = $("#ifr");
  
      $("#ifr").load(function () {
          alert($("#ifr").contents().find('#test').html());
      });
  
      $("#ifr").attr('src', 'http://meoooh.raonnet.com/test/oh.html');
  
  &lt;/script&gt;
  &lt;iframe id="ifr" width="560" height="315"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>And</p>
  
  <p>I get a <code>undefined</code> alert.</p>
  
  <p>Why I can't access div element?</p>