How to add a <tbody> to a specified <table > with jQuery?

omg picture omg · Sep 15, 2009 · Viewed 18.7k times · Source

I want to add the tbody below:

<tbody id="contact">
    ...
</tbody>

to a specified table:

<table id="target">
...
</table>

Answer

rakshetha picture rakshetha · Aug 8, 2012

Here's a better way :

$("#your_table_id > tbody ").append(yourhtml);