title: Parsing HTML String with Ajax/jQuery
body: <p>I asked at <a href="https://stackoverflow.com/questions/1529333/parsing-html-string-with-jquery">Parsing HTML String with jQuery</a> how I can use jQuery on an html string. That all works, but when I apply it to ajax - it does not work. Here is the code.</p>
  
  <pre><code>&lt;script&gt;
    var url = 'moo.html';
  
    $.ajax({
      url: url,
      success: function ( code )
      {
        html = $(code);
        html.each(function() {
          alert( $(this).html() );
        });
      }
    });
  &lt;/script&gt;
  </code></pre>
  
  <p>moo.html contains</p>
  
  <pre><code>&lt;div id='test'&gt;zebra&lt;/div&gt;
  &lt;div id='foo'&gt;bar&lt;/div&gt;
  </code></pre>
  
  <p>How can I get zebra and bar?</p>