title: How to get html of cloned element
body: <p>I have an input element like: <code>&lt;input class="input-m" name="formelement[]" type="text"&gt;</code></p>
  
  <p>I want to clone it and store cloned html to a variable:</p>
  
  <pre><code>var txt=jQuery("input[name="+n+"[]]:first").clone().html();
  </code></pre>
  
  <p>this returns an empty string.</p>
  
  <p>How can I get the html content from <code>.clone()</code>?</p>