title: How to preserve jQuery element data values when using $.merge()
body: <p>In the following, each element in "rows" has a jQuery .data('tag') value.</p>
  
  <pre><code>var rows = $('#availableTagsTable &gt; tbody tr').has('td input:checked');
  var usedTagRows = $('#usedTagsTable &gt; tbody tr');
  $.merge(usedTagRows, rows);
  rows.remove();
  </code></pre>
  
  <p>After execution of $.merge() the elements in both "rows" and "usedTagRows" have the data('tag') value. However, after execution of rows.remove() the elements added to usedTagRows no longer have the data('tag') value.</p>
  
  <p>How do I select elements w/ a .data() value, merge those elements into another set of elements, then remove the original elements, and retain the .data() values?, </p>