title: JQuery copy/append element, base object removed
body: <p>Trying to clone base element <em>li.table-field-base</em> to variable <em>clonedItem</em>, change some attributes and data on the new element and then append it to sortable list <em>ul#tablefield-order-sortable</em>. The result is that the element is appended, but the base element is removed, though i did copy it first. How could i keep the base element, so i can use it later again?</p>
  
  <p>Following is the piece of relevant code that does the copying/appending part:</p>
  
  <pre><code>    var clonedItem = $.extend({}, $('li.table-field-base'));
      $('#tablefield-order-sortable').append(clonedItem);
      $('#tablefield-order-sortable').sortable();
  </code></pre>
  
  <p>Thanks in advance guys!</p>