title: How to create elements and select them on the fly with jQuery
body: <p>I'm a bit stumped with this. I would like to create some elements (using jQuery), call a function on that wrapped set, and continue this process several times via a chain. For example,</p>
  
  <pre><code>$('&lt;div id="xxx"&gt;&lt;/div&gt;')
    .call_plugin()
    .append('&lt;div id="yyy"&gt;&lt;/div&gt;')
    .call_plugin()
    .etc...
  .end();
  </code></pre>
  
  <p>Where the first call to plugin affects xxx, the second affects yyy, and so forth. But this isn't happening; I think the call_plugin() is being called on the first div (id=xxx) every time. Is there a workaround?</p>
  
  <p>Thanks in advance!</p>