Best way to switch wrapping elements using jQuery
<p>I have this code in HTML</p>

<pre><code>&lt;span id="s"&gt;Attachments&lt;/span&gt;
</code></pre>

<p>How to use jQuery to switch the outer SPAN element with the following table code block, so that the "Attachments" text becomes wrapped with the table element.</p>

<pre><code>&lt;table id="t"&gt;
  &lt;tr&gt;
    &lt;td&gt;Attachments&lt;/td&gt;
  &lt;/tr&gt;
&lt;/table&gt;
</code></pre>
