jQuery check if ANY element exists
<p>I have this code which is not working
jQuery</p>

<pre><code>if($("#dis(h3)").length == 0) $("#dis").append("&lt;p&gt;no display&lt;/p&gt;");
</code></pre>

<p>HTML:</p>

<pre><code>&lt;div id="dis"&gt;
&lt;h3&gt;Title&lt;/h3&gt;
//append here
&lt;/div&gt;
</code></pre>

<p>The append code should work</p>

<pre><code>&lt;div id="dis"&gt;
&lt;h3&gt;Title&lt;/h3&gt;
&lt;p&gt;Text&lt;/p&gt;
&lt;/div&gt;
</code></pre>

<p>The append code should not work.</p>

<p><strong>Edit: I need the append code to appear if there is no other element inside <code>#dis</code> beside h3</strong></p>

<p>What should i do to make it as above(intended)</p>
