title: jQuery: append() vs appendTo()
body: <p>I am testing jQuery's <code>.append()</code> vs <code>.appendTo()</code> methods using following code:</p>
  
  <pre><code>$('div/&gt;', {
      id : id,
      text : $(this).text()
      }).appendTo('div[type|="item"]#'+id);
  $('div[type|="item"]#'+id).append($(this).text());
  </code></pre>
  
  <p>Note that the selectors are identical in <code>.appendTo()</code> and <code>.append()</code>, yet the latter works (within the same page), while the former does not. Why?</p>
  
  <p>How do I get <code>.appendTo()</code> to work with this type of (complex) <em>selector</em>? Do the two methods interpolate differently? Is there some syntax I'm missing?</p>
  
  <p>I don't want to clutter the post with impertinent code: suffice it to say that elements referenced by selectors exist, as is evidenced by the <code>.append()</code> method producing desired result. Let me know if more info is needed.</p>
  
  <p>Thanks!</p>