title: How to get href of links inside div using jquery?
body: <p>please, help, I try to get href of links inside div using jquery, but unfortunatelly, it doesn`t work.</p>
  
  <p>Here is my page, where I dynamically get other divs(inside them links are located) inside #films</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;title&gt;Cinemas&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;script src="http://code.jquery.com/jquery-latest.js"&gt;&lt;/script&gt;
  
      &lt;div id = "films"&gt;&lt;/div&gt;
  
      &lt;script src="script.js"&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Here is my script.js:</p>
  
  <pre><code>$(document).ready(function() {
      $.get(myUrl, function(data) { // this block works
      $('#films').html($('.block_afisha', data).html())
      });
  
      $('#films').find('a').each(function() { // there is no iterations here
      console.log($(this).attr('href'));
      });
  });
  </code></pre>
  
  <p>How can I fix it?</p>