Can I prepend table to another table using jQuery?
<p>I am trying to prepend table "new" to table "lasttable" using jQuery but I cannot get the result. Am I doing the right thing or I misunderstood the meaning of prepend?</p>

<pre><code>&lt;table id ="lasttable" class="add" border="1px" width="100%"&gt;
&lt;tr class="header"&gt;&lt;td class="location" colspan="7"&gt;New Item&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;
</code></pre>

<p>My jQuery:</p>

<pre><code>$("#lasttable").prepend("&lt;table id=\"new\" class=\"add\" border=\"1px\" width=\"100%\"&gt;"
+"&lt;tr class=\"header\"&gt;&lt;td class=\"stretch\"&gt;&lt;a class=\"eloc\" rel=\"leanModal\" href=\"#modal_location\"&gt;&lt;img src=\"images/edit-icon.png\" alt=\"Location\"&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class=\"location\" colspan=\"6\"&gt;&lt;/td&gt;&lt;/tr&gt;
+"&lt;/tbody&gt;&lt;/table&gt;");
</code></pre>
