title: Using clone() and html() to copy element does not retain old or new value
body: <p>I am using the following code to copy an element:</p>
  
  <pre><code>$($('&lt;div&gt;&lt;/div&gt;').html($('#elememt').clone())).html()
  </code></pre>
  
  <p>This works but does not keep the original elements value. I even tried it like this:</p>
  
  <pre><code>$($('&lt;div&gt;&lt;/div&gt;').html($('#elememt').clone().val('test'))).html()
  </code></pre>
  
  <p>with no luck.</p>
  
  <p>Any idea on why this is happening and how to fix it?</p>