Remove TFoot when TBody tr's are empty
<p>I have a table with header,body and footer. when my table body is empty then i need to hide my table footer also.</p>

<p>My Code:</p>

<pre><code>$("#tid tfoot tr").html("");
</code></pre>