Check if an element is empty after using .append
<p>I want to check if a table body (<code>tbody</code>) is empty using jQuery. So far I've tried something like:</p>

<pre><code>$("#searchTable tbody").is(":empty")
</code></pre>

<p>But it doesn't work. Any other ideas?</p>

<p>HTML Sample</p>

<pre><code>&lt;table id="searchTable"cellpadding="0" cellspacing="0" width="100%" &gt;
&lt;thead&gt;&lt;tr&gt;
&lt;th&gt;No.&lt;/th&gt;
&lt;th&gt;&lt;a href="#"&gt;Status&lt;/a&gt;&lt;/th&gt;
&lt;th&gt;&lt;a href="#" class="asc"&gt;Category&lt;/a&gt;&lt;/th&gt;
&lt;th&gt;&lt;a href="#" class="desc"&gt;Title&lt;/a&gt;&lt;/th&gt;
&lt;th&gt;&lt;a href="#" class="desc"&gt;Last Used&lt;/a&gt;&lt;/th&gt;
&lt;th&gt;&lt;a href="#" class="desc"&gt;URL&lt;/a&gt;&lt;/th&gt;
&lt;th style="width: 96px;"&gt;Actions&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;/tbody&gt;
&lt;/table&gt;
</code></pre>

<p>So i want to check if something was appended in tbody...if not then alert something.</p>
