title: Selecting an Element after a jQuery appendTo Function
body: <p>I need to dynamically append a set of elements to a div via jQuery and then turn around and reference them.  It's really odd that you can't do this, since if you view the DOM in firebug, the elements are there.  jQuery just doesn't act like they exist.</p>
  
  <p>HTML...</p>
  
  <pre><code>&lt;div id="images"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>This gives me my elements added to the <code>&lt;div&gt;</code>...</p>
  
  <pre><code>$.getJSON("http://localhost/wordpress/test.php",
      function (data) {
          $.each(data, function (i, item) {
              $("&lt;img/&gt;").attr("src", item).appendTo("#images");
          });
      });
  </code></pre>
  
  <p>Then I immediately try to select and use the images...</p>
  
  <pre><code>$("img").each(
      function (i, item) {
          alert(item);
      });
  </code></pre>
  
  <p>jQuery doesn't select any of the newly added  elements.  It basically acts like none of the images were added.</p>