Copy part of table with jQuery
<p>I have a large table with data.</p>

<p>The table has a header.</p>

<p>I need to copy exactly the header of that table, from <code>&lt;thead&gt;</code> to <code>&lt;/thead&gt;</code>, into another section within the same document. How can I do that?</p>

<pre><code>&lt;table id="myTbl"&gt;
&lt;thead&gt;
&lt;tr&gt;
    &lt;th&gt;&lt;/th&gt;
    ...
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
...
&lt;/tbody&gt;
&lt;/table&gt;
</code></pre>
