How to check a div is exists or not?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/31044/is-there-an-exists-function-for-jquery">Is there an &ldquo;exists&rdquo; function for jQuery</a>  </p>
</blockquote>



<pre><code> &lt;div class="XXX"&gt;
  &lt;div class="created"&gt;
  &lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>div <code>class="created"</code> automatically generated by JavaScript using append function jQuery for some validation i need to check whether div is generated or not how can i do this.using jQuery.</p>

<p>something like <code>$('.xxx').html()==' '</code></p>
